joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409154
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx]
je 0x40917c
cmp esi, dword [ebx + 0x54]
je 0x40923e
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x54]
je 0x40923e
cmp dword [ebx + 0x54], 0
push edi
je 0x4091cf
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x54]
mov ecx, ebx
call fcn.00408f38
mov dword [ebx + 0x54], edi
test esi, esi
je 0x40923d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x40923d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x40923d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x40923d
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebx + 0x54], esi
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x54]
mov ecx, ebx
call fcn.00408f38
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40adae
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ade0
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x41790b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x4d4], edi
je 0x417975
cmp dword [ebp + 8], 0x100
jne 0x417964
cmp word [ebp + 0xc], 0xd
jne 0x417964
cmp byte [esi + 0x4da], 0
je 0x41794b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x417964
cmp byte [esi + 0x4db], 0
jne 0x417964
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x417960
push edi
push edi
push edi
push str.return
push esi
call fcn.00408f38
xor eax, eax
jmp 0x417978
mov eax, dword [esi + 0x4d4]
pop edi
mov ecx, dword [eax + 0xc]
pop esi
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x417c48
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45dcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x417cfe
movzx eax, word [esi]
test ax, ax
je 0x417cfe
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x417c88
cmp ax, 0x5c
jne 0x417c8a
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x417c7c
cmp edi, esi
je 0x417cd1
sub edi, esi
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00438472
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x417d0c
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00417c48
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00439cc3
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00439c94
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00437a1e
leave
ret
call fcn.0043bc7b
int3

Function at 0x4182dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x418359
cmp dword [edi + 4], 0xffffffff
jne 0x418359
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4568a4
push esi
call fcn.00439c94
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x41832b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x41832b
mov eax, 0x2000000
jmp 0x41835e
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a7d4
add esp, 0x10
test eax, eax
jne 0x418349
mov eax, dword [ebp - 4]
jmp 0x41835e
push eax
call fcn.0041aed5
mov dword [edi], eax
mov eax, dword [0x45f618]
pop ecx
jmp 0x41835e
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x41a8e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x41a915
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a910
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x41a93c
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x41a925
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00438f70
add esp, 0xc
add dword [edi + 0x18], esi
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x41aaad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41aabb
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x41ab76
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
add edx, 8
sub esi, 8
dec edi
jne 0x41aad9
pop edi
test esi, esi
je 0x41ab8f
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd48]
inc edx
dec esi
jne 0x41ab7a
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x41bb51
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x447bc9
call fcn.00438b21
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0041bee2
call fcn.00406d3b
push eax
lea ecx, [ebp - 0x94]
call fcn.00409a57
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00406d41
mov ecx, eax
call fcn.0040a224
test al, al
je 0x41bc67
push ebx
lea ecx, [ebp - 0x94]
call fcn.00409ca2
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0040a0d2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x41bbd8
push str.Error_opening_file
jmp 0x41bd48
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x41bce1
cmp edi, 0x400000
ja 0x41bcf2
and dword [ebp - 0x2c8], 0
push edi
call fcn.00405daf
pop ecx
mov ebx, eax
push 0
lea eax, [ebp - 0x2c8]
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x41bc50
push ebx
call fcn.00437a2d
pop ecx
mov ecx, esi
call fcn.0041bee2
push 0
push str.Could_not_read_file
jmp 0x41bd48
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0041bd97
push dword [ebp - 0x2cc]
jmp 0x41bd76
call fcn.00406d41
push eax
lea ecx, [ebp - 0x94]
call fcn.00409c85
call fcn.00406df1
test al, al
je 0x41bc88
call fcn.00406d47
jmp 0x41bc9f
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0040a0d2
push eax
call fcn.00418363
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x41bcb0
push eax
push str.Error_opening_zip_file
jmp 0x41bd48
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.00417d9a
add esp, 0x14
test eax, eax
je 0x41bcd7
push 0
push str.Could_not_find_ziped_file
jmp 0x41bd48
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x41bcea
push 0
push str.File_is_empty
jmp 0x41bd48
cmp ebx, 0x400000
jbe 0x41bcfb
push 0
push str.File_too_large
jmp 0x41bd48
push ebx
call fcn.00405daf
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00418716
add esp, 0x18
test eax, eax
je 0x41bd53
cmp eax, 0x600
je 0x41bd53
push dword [ebp - 0x2c8]
call fcn.00437a2d
pop ecx
call fcn.00406df1
test al, al
jne 0x41bd41
push edi
call fcn.00417bfe
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0041bf0a
mov bl, al
jmp 0x41bd7e
call fcn.00406df1
test al, al
jne 0x41bd63
push edi
call fcn.00417bfe
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
push ebx
push edi
mov ecx, esi
call fcn.0041bd97
push edi
mov bl, al
call fcn.00437a2d
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00409b93
mov al, bl
call fcn.00438adf
ret 8
Function at 0x4235d9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4235fd
cmp dword [esi + 8], edi
jge 0x4235f5
push esi
call fcn.004218b5
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edx, edx
test ecx, ecx
jle 0x423623
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
mov byte [ebp + edx + 8], al
shr edi, 8
sub ecx, 8
inc edx
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x423609
mov dword [esi + 8], ecx
jmp 0x42363b
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x42362e
xor eax, eax
jmp 0x423636
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edx + 8], al
inc edx
cmp edx, 4
jl 0x423623
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
movzx eax, byte [ebp + 0xa]
shl ecx, 8
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x423675
push str.zlib_corrupt
call fcn.00421772
add esp, 4
jmp 0x4236b2
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x423685
push str.read_past_buffer
jmp 0x42366b
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x42369c
push edi
push esi
call fcn.00421781
pop ecx
pop ecx
test eax, eax
je 0x4236b2
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00438f70
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x434763
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45dcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4347d0
cmp dword [esi + 0x10], 0
je 0x4347d0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00437e90
mov ebx, esp
test ebx, ebx
je 0x4347d0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.00409c29
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00408f38
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437a1e
leave
ret 0x10

Function at 0x4371d7
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x44882d
call fcn.00438b21
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5b8], ebx
cmp dword [edi + 4], ebx
jne 0x437269
lea eax, [ebp - 0xa8]
push eax
call fcn.00436eda
mov ecx, dword [edi + 0x10]
push ebx
mov eax, dword [ecx]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0040a0d2
mov edi, dword [ebp - 0x98]
push eax
mov ecx, edi
call fcn.0040a9cc
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.0041e1dd
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00406a73
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040a224
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00409b93
mov esi, 0x5a8
test bl, bl
je 0x4372a8
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00438adf
ret 4
Function at 0x441e39
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45dcf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0043d969
mov dword [ebp - 0x14], eax
cmp dword [0x460360], edi
jne 0x441f2a
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x441eb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44200a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44200a
push 0x4531f0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44200a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x460360], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x460364], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x460368], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x460370], eax
test eax, eax
je 0x441f27
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46036c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x441f4f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x441f42
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x441f64
push 4
pop eax
jmp 0x44200c
cmp dword [ebp - 0x14], edi
je 0x441f64
push dword [0x460360]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x441f49
mov eax, dword [0x46036c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x441fc2
cmp dword [0x460370], esi
je 0x441fc2
push eax
call ebx
push dword [0x460370]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x441fc2
test eax, eax
je 0x441fc2
call ecx
test eax, eax
je 0x441fb7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x441fb7
test byte [ebp - 8], 1
jne 0x441fc2
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x441ff2
mov eax, dword [0x460364]
cmp eax, esi
je 0x441fef
push eax
call ebx
test eax, eax
je 0x441fef
call eax
mov edi, eax
test edi, edi
je 0x441fef
mov eax, dword [0x460368]
cmp eax, esi
je 0x441fef
push eax
call ebx
test eax, eax
je 0x441fef
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x460360]
call ebx
test eax, eax
je 0x44200a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44200c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437a1e
leave
ret
Function at 0x4033e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405a0c
test esi, esi
jne 0x40341c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405b48
jmp 0x40343a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032c8
mov edi, eax
test esi, esi
je 0x40343a
cmp dword [ebx], 0
je 0x40343a
dec esi
jmp 0x403423
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403b38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c8020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bd0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bb0
xor eax, eax
push ebp
push 0x403ba9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bb0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4c8020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c8020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404dbc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d0054], 0
je 0x404e1d
cmp word [0x4d0330], 0xd7b2
jne 0x404de5
cmp dword [0x4d0338], 0
jbe 0x404de5
mov eax, 0x4d032c
call dword [0x4d0348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c8030], 0
jne 0x404e39
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404fc8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c8034], 0
je 0x404fee
mov edx, esi
mov eax, ebx
call dword [0x4c8034]
jmp 0x404ffd
mov eax, 8
call fcn.00403010
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d0055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f90
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408060
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409c1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4d2b60
push 0xa
push 0x409cb0
mov eax, dword [0x4d2b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409c40
call fcn.00412650
push ebx
mov eax, dword [0x4d2b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409c57
call fcn.00412650
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409c69
call fcn.00412650
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4d2b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4d2b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4d2b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4d2b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4d2b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x4d2b78], edx
pop esi
pop ebx
ret

Function at 0x40b318
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b3c1
test eax, edx
je 0x40b3c4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b341
push edx
mov edx, eax
mov eax, esp
call fcn.00405c28
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b357
push eax
lea eax, [esp + 8]
call fcn.00405c28
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b366
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b38d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b3a7
add ecx, 4
js 0x40b37e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b3a4
push eax
mov eax, ecx
mov edx, 2
call fcn.00405068
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b38b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b38d
xor eax, eax
ret
test eax, eax
je 0x40b3d4
test edx, edx
jne 0x40b328
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405a98
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c59e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c5bf
cmp ebx, 3
je 0x40c5bf
cmp ebx, 0x7b
je 0x40c5bf
mov eax, esi
call fcn.0040c540
test al, al
jne 0x40c5c3
xor eax, eax
jmp 0x40c5c5
mov al, 1
pop esi
pop ebx
ret

Function at 0x40c5c8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405a98
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret