joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537140
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
mov edi, dword [edi]
mov al, byte [edi]
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x5371ae
xor edx, edx
nop dword [eax]
lea ecx, [edx - 0x30]
movzx eax, al
add ecx, eax
inc edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, 0x66666667
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
lea edx, [ecx + ecx*4]
add edx, edx
cmp edx, ebx
jg 0x537196
test esi, esi
je 0x537196
mov al, byte [edi]
cmp al, 0x30
jb 0x537196
cmp al, 0x39
jbe 0x537160
cmp ecx, dword [ebp + 0x10]
jl 0x5371ae
cmp ecx, ebx
jg 0x5371ae
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 1
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x537e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, eax
mov ecx, dword [ebp + 0xc]
neg edx
and edx, 3
dec edx
cmp edx, 3
ja case.default.0x537e66
jmp dword [edx*4 + 0x537f08]
mov dl, byte [eax]
cmp dl, cl
je 0x537f05
test dl, dl
je 0x537f05
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x537f05
test dl, dl
je 0x537f05
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x537f05
test dl, dl
je 0x537f05
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x537f05
test dl, dl
je 0x537f05
inc eax
mov edx, dword [eax]
push esi
movzx ecx, cl
push edi
imul edi, ecx, 0x1010101
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
jne 0x537ef8
mov edx, dword [eax + 4]
add eax, 4
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
je 0x537ed0
bsf ecx, esi
pop edi
mov dword [ebp + 8], ecx
sar ecx, 3
add eax, ecx
pop esi
pop ebp
ret

Function at 0x53b480
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push 1
call fcn.0053d9f0
push dword [ebp + 8]
push 0
mov esi, dword [eax]
call fcn.0053d9f0
add esp, 0x10
push 1
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
test eax, eax
je 0x53b4b1
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054150c
add esp, 4
or eax, 0xffffffff
pop ebp
ret
Function at 0x53ba60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push dword [ebp + 8]
push 0
call fcn.0053d9f0
push dword [eax]
call fcn.00554e8f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x53bb63
mov ecx, dword [0x60098c]
not ecx
and ecx, dword [ebp + 0xc]
test cl, 2
je 0x53bb63
mov dword [ebp - 0xc], eax
xorps xmm0, xmm0
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [ebp - 0x14]
mov word [ebp - 0x10], 0x100
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
call fcn.0053b400
add esp, 4
test eax, eax
je 0x53bb32
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10000000
push eax
push 1
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x53bb32
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0053db60
add esp, 8
push esi
push dword [ebp - 8]
push esi
push esi
push 4
push 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 0xc]
push eax
call fcn.0053db30
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x53bb53
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x53bb61
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53bcc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00553d25
Function at 0x53bcd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call fcn.0053d9f0
add esp, 8
mov ebx, dword [eax]
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b400
neg eax
push ebx
sbb esi, esi
inc esi
call dword [ebp + 8]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x53bd8d
test esi, esi
jne 0x53bd8d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b400
add esp, 4
test eax, eax
jne 0x53bd8a
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
add esi, 0x28f0
mov eax, dword [esi]
test eax, eax
jne 0x53bd61
call fcn.00541542
cmp dword [eax], 5
jne 0x53bd8a
call edi
sub eax, dword [ebp - 4]
cmp eax, 2
ja 0x53bd94
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b400
add esp, 4
test eax, eax
je 0x53bd56
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53c220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x53c24e
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c243
call fcn.00541542
mov dword [eax], 2
xor eax, eax
pop ebx
pop ebp
ret
push ebx
push 0
call fcn.0053d9f0
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call fcn.0053b400
add esp, 4
cmp eax, 0xffffffff
je 0x53c249
test al, 0x10
jne 0x53c295
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c28a
call fcn.00541542
mov dword [eax], 0x14
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
push 1
push 0x1c
call fcn.00541555
push 1
push 0x128
mov edi, eax
call fcn.00541555
push ebx
mov esi, eax
call fcn.0053c710
add esp, 0x14
mov dword [esi], eax
mov dword [edi], esi
mov eax, edi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0x128
mov dword [edi + 0x10], 0x128
mov dword [edi + 4], 8
mov dword [edi + 0x14], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x53c2f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, 0xffffffff
jne 0x53c3bd
mov ecx, dword [ebx]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x53c317
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53c330
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x2f
je 0x53c363
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c350
mov ax, word [0x56b90c]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c370
mov ax, word [0x570ed8]
mov word [edi], ax
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.0053d9f0
add esp, 8
lea ecx, [ebp - 0x358]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call fcn.0053b400
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x53c412
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call fcn.0053b400
add esp, 4
test eax, eax
jne 0x53c412
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c3ef
call fcn.00541542
cmp dword [eax], 0x12
jne 0x53c409
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c403
call fcn.00541542
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x358], 0x10
mov dword [ebx + 8], 0
sete al
mov dword [ebx + 0xc], 0
lea eax, [eax*4 + 4]
mov byte [ebx + 0x120], al
mov eax, 0x120
mov word [ebx + 0x10], ax
lea eax, [ebp - 0x32c]
push eax
push 0
call fcn.0053d700
push 0x104
lea esi, [ebx + 0x14]
push dword [eax]
push esi
call fcn.0053d950
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x53c464
mov eax, dword fs:[0x2c]
sub esi, ecx
mov word [ebx + 0x12], si
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c488
call fcn.00541542
pop edi
mov dword [eax], 0
lea eax, [ebx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53c9c0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0
push 0x2000080
push 3
push 0
push 3
push 0x100
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.0053dcc0
push eax
call fcn.0053b430
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
je 0x53ca4e
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
test esi, esi
jne 0x53ca14
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x53ca2a
push esi
call fcn.0053ded0
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
call fcn.0053ded0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push eax
call fcn.0053b400
add esp, 4
xor ecx, ecx
test eax, eax
cmovne edi, ecx
pop esi
lea eax, [ebp - 4]
push eax
call fcn.0053dc90
add esp, 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x53d300
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call fcn.0053b430
mov edi, eax
add esp, 4
test edi, edi
jne 0x53d329
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x53d381
cmp eax, 9
je 0x53d367
cmp eax, 0x16
je 0x53d367
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53d351
call fcn.00541542
push edi
mov dword [eax], 0x16
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
call fcn.0053b400
or ecx, 0xffffffff
add esp, 4
test eax, eax
cmove esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x53d5b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
mov edx, dword [eax]
add edx, 0x2cb4
push edi
mov dword [ebp - 4], edx
lea ecx, [ebx + 1]
xor edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x53d5d4
push dword [edx]
sub ebx, ecx
call fcn.00541560
lea eax, [ebx*2 + 2]
push eax
call fcn.00541565
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [eax], ebx
mov cl, byte [esi]
test cl, cl
je 0x53d61f
lea edx, [esi + 1]
cmp cl, 0xc0
jae 0x53d63e
movzx eax, cl
mov word [ebx + edi*2], ax
inc edi
mov esi, edx
mov cl, byte [esi]
test cl, cl
jne 0x53d604
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [ebx + edi*2], cx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0xe0
jae 0x53d68c
mov dl, byte [edx]
lea eax, [edi + 1]
mov dword [ebp - 8], eax
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d679
and cl, 0x1f
and dl, 0x3f
movzx ecx, cl
shl cx, 6
movzx eax, dl
or cx, ax
movzx eax, cx
mov ecx, 2
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d616
movzx eax, cl
mov ecx, 1
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d616
cmp cl, 0xf0
jae 0x53d614
mov dl, byte [edx]
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d6dd
mov bl, byte [esi + 2]
mov al, bl
and al, 0xc0
cmp al, 0x80
jne 0x53d6da
and dl, 0x3f
movzx eax, cl
shl ax, 6
and bl, 0x3f
movzx edx, dl
or dx, ax
movzx eax, bl
mov ebx, dword [ebp + 8]
shl dx, 6
or dx, ax
mov eax, 3
movzx ecx, dx
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d616
mov ebx, dword [ebp + 8]
movzx ecx, cl
mov eax, 1
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d616

Function at 0x541349
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e09a4
push 0x5e099c
push 0x5e09a4
push 0
call fcn.005412c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54137b
push dword [ebp + 8]
mov ecx, esi
call fcn.0053f046
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x5413bd
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e09d4
push 0x5e09cc
push 0x5e09d4
push 3
call fcn.005412c2
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x5413f1
mov ecx, esi
call fcn.0053f046
call esi
jmp 0x5413f7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x557bea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00557a69

Function at 0x559faa
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00559eaf
Function at 0x5618e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x6015c8], 0
je 0x561996
cmp dword [0x6015e0], 0
je 0x561996
call fcn.00565060
test eax, eax
je 0x56195e
push dword [0x6015e0]
lea eax, [ebp - 4]
push dword [0x6015d8]
push eax
push 0
call fcn.00564810
add esp, 0x10
test eax, eax
je 0x56195e
push dword [0x6015c8]
push 1
push dword [ebp - 4]
push eax
call fcn.00548914
mov eax, dword [0x6015e0]
add esp, 0x10
cdq
add dword [0x6015d0], eax
mov dword [0x6015e0], 0
adc dword [0x6015d4], edx
call fcn.00561b20
mov esp, ebp
pop ebp
ret
push dword [0x6015c8]
push 1
push dword [0x6015e0]
push dword [0x6015d8]
call fcn.00548914
mov eax, dword [0x6015e0]
add esp, 0x10
cdq
add dword [0x6015d0], eax
mov dword [0x6015e0], 0
adc dword [0x6015d4], edx
mov esp, ebp
pop ebp
ret

Function at 0x561d30
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x601664], 0
jne fcn.00563730
jmp fcn.005618e0

Function at 0x561e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6015f8], 0
jne 0x561e6d
call fcn.00565060
test eax, eax
jne 0x561e6d
push dword [0x6015c8]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00548914
add esp, 0x10
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
mov eax, dword [0x6015e4]
mov esi, edi
sub eax, dword [0x6015e0]
cmp edi, eax
cmovge esi, eax
mov eax, dword [0x6015d8]
add eax, dword [0x6015e0]
push esi
push ebx
push eax
call fcn.0053f470
add dword [0x6015e0], esi
add esp, 0xc
add ebx, esi
sub edi, esi
je 0x561ecb
cmp dword [0x601664], 0
je 0x561ec4
call fcn.00563730
jmp 0x561e80
call fcn.005618e0
jmp 0x561e80
cmp dword [0x6015f8], 0
pop edi
pop esi
pop ebx
jne 0x561e6b
cmp dword [0x601664], 0
je 0x561ee6
pop ebp
jmp fcn.00563730
pop ebp
jmp fcn.005618e0
Function at 0x563410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x563aa0
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00420810
push 0x80
push str.last__dKB_of_log_file:_n
push dword [ebp + 8]
mov dword [ebp - 8], eax
xor edi, edi
mov dword [ebp - 4], 0x30400
call fcn.0041a7d0
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00421a80
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [ebp - 4]
push dword [eax]
push dword [ebp + 0xc]
call fcn.00423b90
add esp, 0x30
test eax, eax
jne 0x5634e6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [eax]
cmp ecx, 0x20000
jle 0x5634cd
push ecx
push esi
call fcn.00564ee0
add esp, 8
test eax, eax
je 0x5634c2
nop
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x10400
jge 0x5634b7
mov edi, eax
inc eax
sub edx, eax
add edx, dword [ebp - 4]
push edx
push eax
call fcn.00564ee0
add esp, 8
test eax, eax
jne 0x563490
test edi, edi
je 0x5634c2
mov ecx, dword [ebp - 4]
mov esi, edi
jmp 0x5634cd
mov ecx, dword [ebp - 4]
add esi, 0xfffe0000
add esi, ecx
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov eax, dword [eax]
sub eax, esi
add eax, ecx
push eax
push 1
push esi
call fcn.00548914
add esp, 0x10
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x564a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jne 0x564a9e
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x564a94
sub ecx, esi
pop esi
push ecx
push edx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.00564810
add esp, 0x10
test eax, eax
je 0x564ac4
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 1
push eax
call fcn.00548914
add esp, 0x10
pop ebp
ret

Function at 0x564e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.wbEe
push dword [ebp + 8]
call fcn.00423630
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x564eda
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x564eab
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x564ea1
sub ecx, edi
pop edi
push ecx
push edx
lea eax, [ebp - 4]
push eax
push 0
call fcn.00564810
add esp, 0x10
test eax, eax
je 0x564ece
push esi
push dword [ebp - 4]
push 1
push eax
call fcn.00548914
add esp, 0x10
lea eax, [ebp - 8]
push eax
call fcn.00423610
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10007c2e
pop dword [ebp - 0x44]
mov eax, 0x299c2d7
add eax, 0xd66b957
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xf7fccd5c
add dword [ebp - 0x54], 0x565577ef
mov dword [ebp - 0x50], 0xa3169a4d
sub dword [ebp - 0x50], 0x70e34e08
mov dword [ebp - 0x4c], 0xb9fa35e8
sub dword [ebp - 0x4c], 0x6dadf1ba
mov dword [ebp - 0x48], 0x42a6a23f
sub dword [ebp - 0x48], 0x42a6a23f
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xc30a50d5
sub dword [ebp - 0x54], 0x4e97e77f
mov dword [ebp - 0x50], 0x1c0da1e2
sub dword [ebp - 0x50], 0xdaa1406d
mov dword [ebp - 0x4c], 0xe79cfa6
sub dword [ebp - 0x4c], 0xab0a633a
mov dword [ebp - 0x48], 0xa76b2b72
sub dword [ebp - 0x48], 0xa76b2b72
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x4bf44179
sub eax, 0x3bf3c129
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x36372
push 0
call eax
mov ecx, 0x960b8754
add ecx, 0x69f4bedd
xor edx, edx
add edx, eax
mov ebx, 0x65972559
add ebx, 0xaa69d4a7
add ebx, dword [ebp - 0x44]
mov edi, 0x96ffb22c
sub edi, 0x7d9ed09a
xor dword [ebp - 0x24], 0x57c387c5
mov esi, dword [ebx]
xor dword [ebp - 0x34], edx
sub esi, edi
mov dword [ebp - 8], 0x8e344f27
mov dword [edx], esi
xor dword [ebp - 0x2c], 0x7f858638
add edx, 4
add ebx, 0x42a8ba16
sub ebx, 0x42a8ba12
loop 0x10007d4d
add eax, 0xb41de395
sub eax, 0xb41cd7fe
mov ebx, eax
add eax, 5
mov ecx, 0xe2a2dca1
sub ecx, 0xd2a2dca1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x403db2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
cmp dword [ebp + 8], 0
mov eax, dword [0x421980]
je 0x403de4
test eax, eax
je 0x403dd5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x421980], 0
jmp 0x403e99
test eax, eax
je 0x403dfa
mov dword [esp], 0
call fcn.00409226
push edx
jmp 0x403e99
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x419920]
jbe 0x403e99
cmp dword [0x42da4c], 0
je 0x403e50
test byte [0x417054], 1
je 0x403e99
call fcn.00403cd8
lea ebx, [ebp - 0x88]
mov dword [esp + 4], str....__d__
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040761e
jmp 0x403e97
mov eax, dword [0x42da48]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403d0a
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x421980], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4040e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test eax, eax
js 0x40412a
add eax, dword [0x419978]
mov dword [esp + 0xc], 0
mov dword [0x42da38], eax
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00403ef8
mov edi, eax
push ecx
test eax, eax
js 0x404242
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00408221
sub esp, 0xc
test eax, eax
jne 0x40416e
mov edi, 0xfffffffd
jmp 0x404242
mov eax, dword [ebp - 0x1c]
add dword [0x42da38], 4
mov dword [esp], eax
call fcn.00403ef8
mov edi, eax
push edx
test eax, eax
js 0x404242
test esi, esi
jne 0x4041fb
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x404242
cmp eax, 0x4000
mov edx, 0x4000
mov dword [esp + 4], 0x4299a0
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00408221
sub esp, 0xc
test eax, eax
je 0x404164
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x4299a0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00408267
sub esp, 0xc
test eax, eax
je 0x40423d
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x42da38], eax
add edi, eax
jmp 0x40418f
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x1c], ebx
cmovle ebx, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x40b010]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x404164
mov edi, dword [ebp - 0x20]
add dword [0x42da38], edi
jmp 0x404242
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10