joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8580
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4c85c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4c8a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c85f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004c8670
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c8670
lea ecx, [esi + 0xc]
call fcn.004f401f
lea ecx, [esi + 0x10]
call fcn.004f401f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004c9c00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004c9c00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004c9c00
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004f4094
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004f4094
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4c9df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4c9e56
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4c9e56
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4c9e37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4ccd00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa9daa8]
xor edx, edx
cmp eax, edx
jne 0x4ccd26
xor eax, eax
mov byte [eax + 0xa9d9a8], al
inc eax
cmp eax, 0x100
jl 0x4ccd0e
mov dword [0xa9daa8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa9d9a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4ccdb7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4ccd8a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4ccd58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4cce30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4cce83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4cce6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50354e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004d4120
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xa43dc4
call fcn.004f3dd5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d3893
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f3dd5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d388c
push 0
mov ecx, eax
call fcn.004ca930
mov dword [esi + 0xc], eax
jmp 0x4d3895
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d3895
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4f6462
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f649a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f44ef
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f44c7
jmp 0x4f64a6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f7b58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f7b9a
call fcn.004fd7cc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f7b9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f7b91
xor eax, eax
jmp 0x4f7ba2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f7ba8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4fdcfc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4fdd2a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fdd48
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fdc62
jmp 0x4fdd48
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fdd48
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fdc62
test edi, edi
mov eax, edi
jne 0x4fdd32
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40589f
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp - 4]
xor esi, esi
mov dword [ebp - 8], eax
push esi
push esi
push edx
push esi
push 7
push eax
push ecx
mov dword [ebp - 0xc], ecx
mov dword [edi], esi
mov dword [ebx], esi
mov dword [ebp - 4], esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4058ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405933
movzx eax, ax
or eax, 0x80070000
jmp 0x405933
cmp dword [ebp - 4], esi
je 0x405931
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x405906
mov eax, 0x8007000e
jmp 0x405933
push 0
push 0
lea eax, [ebp - 4]
push eax
push esi
push 7
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x40592a
mov ecx, esi
call fcn.0040854d
jmp 0x4058d6
mov eax, dword [ebp - 4]
mov dword [edi], esi
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40593a
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp - 4]
xor esi, esi
mov dword [ebp - 8], eax
push esi
push esi
push edx
push esi
push 7
push eax
push ecx
mov dword [ebp - 0xc], ecx
mov dword [edi], esi
mov dword [ebx], esi
mov dword [ebp - 4], esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x405985
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4059ce
movzx eax, ax
or eax, 0x80070000
jmp 0x4059ce
cmp dword [ebp - 4], esi
je 0x4059cc
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x4059a1
mov eax, 0x8007000e
jmp 0x4059ce
push 0
push 0
lea eax, [ebp - 4]
push eax
push esi
push 7
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x4059c5
mov ecx, esi
call fcn.0040854d
jmp 0x405971
mov eax, dword [ebp - 4]
mov dword [edi], esi
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4086b1
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
mov ebx, esi
push edi
test eax, eax
je 0x408797
test ecx, ecx
je 0x408797
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x408797
or dword [edi], 0xffffffff
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
mov dword [eax], esi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x408720
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x408776
movzx esi, si
or esi, 0x80070000
jmp 0x408774
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x408709
cmp dword [ebp - 4], ebx
je 0x40873f
mov esi, 0x80004005
jmp 0x408778
push esi
push esi
push esi
push 2
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x408709
push dword [ebp - 8]
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x408709
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test esi, esi
je 0x408788
cmp dword [edi], 0xffffffff
je 0x408788
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
test ebx, ebx
je 0x408793
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40879c
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4087a3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40c3fc]
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
mov esi, edx
test eax, eax
je 0x408840
test esi, esi
je 0x408840
cmp dword [ebp + 8], ecx
je 0x408840
push ebx
push ecx
push ecx
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4087f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40883b
movzx esi, si
or esi, 0x80070000
jmp 0x40883b
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408824
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x408834
movzx esi, si
or esi, 0x80070000
jmp 0x408834
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 8]
neg esi
sbb esi, esi
and esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
jmp 0x408845
mov eax, 0x80070057
pop esi
leave
ret 4
Function at 0x4088f3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x409100
call fcn.00408e58
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40c570
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x408938
cmp eax, esi
jne 0x40892b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40893b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40890f
xor esi, esi
inc esi
cmp dword [0x40c574], esi
jne 0x40894d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x408987
cmp dword [0x40c574], ebx
jne 0x408981
mov dword [0x40c574], esi
push 0x4010d4
push 0x4010c8
call fcn.00408a6c
pop ecx
pop ecx
test eax, eax
je 0x408987
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x408a5c
mov dword [0x40a024], esi
cmp dword [0x40c574], esi
jne 0x4089aa
push 0x4010c4
push 0x4010bc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40c574], 2
test edi, edi
jne 0x4089b7
xor eax, eax
mov ecx, 0x40c570
xchg dword [ecx], eax
cmp dword [0x40c578], 0
je 0x4089e3
push 0x40c578
call fcn.00408cb0
pop ecx
test eax, eax
je 0x4089e3
push ebx
push 2
push ebx
mov esi, dword [0x40c578]
mov ecx, esi
call dword [0x40d1d8]
call esi
push dword [0x40a030]
push dword [0x40a02c]
push dword [0x40a028]
call fcn.004017e0
add esp, 0xc
mov dword [0x40a020], eax
cmp dword [0x40a038], 0
jne 0x408a41
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40a024], 0
jne 0x408a55
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40a020]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004a1000
jmp 0x4088f3

Function at 0x408b94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x409120
call fcn.00408e58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x408bf4
cmp eax, 0xffffffff
je 0x408bf4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x408bed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x408bed
cmp edx, 0x10000000
jae 0x408bed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x408bea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408c60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x408c9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x408c96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x408ca0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x408c86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408d70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x408da1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408da1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x408da1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x46d000
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
push ebp
dec eax
mov ebp, esp
dec eax
sub esp, 0x38
dec eax
and esp, 0xfffffff0
dec eax
mov ecx, 0x46d062
add byte [eax], al
add byte [eax], al
dec eax
mov eax, sym.imp.KERNEL32.dll_LoadLibraryA
add byte [eax], al
add byte [eax], al
call dword [eax]
dec eax
mov edx, 0x46d06b
add byte [eax], al
add byte [eax], al
dec eax
mov ecx, eax
dec eax
mov eax, sym.imp.KERNEL32.dll_GetProcAddress
add byte [eax], al
add byte [eax], al
call dword [eax]
xor ecx, ecx
dec eax
mov dword [esp + 0x28], ecx
dec eax
mov dword [esp + 0x20], ecx
dec ecx
mov ecx, ecx
dec ecx
mov eax, 0x46d078
add byte [eax], al
add byte [eax], al
dec eax
mov edx, ecx
call eax
leave
jmp fcn.00403640
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40673a
pop dword [ebp - 0x10]
mov eax, 0x85254cd9
sub eax, 0x84e4e59f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x5c9aab8d
add dword [ebp - 0x20], 0xf1b799be
mov dword [ebp - 0x1c], 0xb0c369d6
sub dword [ebp - 0x1c], 0x7e901d91
mov dword [ebp - 0x18], 0xf2d96d0
sub dword [ebp - 0x18], 0xc2e152a2
mov dword [ebp - 0x14], 0xc726bb6e
sub dword [ebp - 0x14], 0xc726bb6e
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x928595ab
add dword [ebp - 0x20], 0xe1ecd3ab
mov dword [ebp - 0x1c], 0x8728c71f
sub dword [ebp - 0x1c], 0x45bc65aa
mov dword [ebp - 0x18], 0x586f525c
sub dword [ebp - 0x18], 0xf4ffe5f0
mov dword [ebp - 0x14], 0x4a5c4afe
sub dword [ebp - 0x14], 0x4a5c4afe
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xeabd127b
sub eax, 0xea7c917b
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x38159
push 0
call eax
mov ecx, 0x176dc9d8
add ecx, 0xe892806e
mov edx, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x10]
mov edi, 0x80e0c4a6
xor dword [ebp - 4], ebx
mov esi, dword [ebx]
mov dword [ebp - 8], 0x4885cc27
sub esi, edi
mov dword [ebp - 4], 0xd7c04047
mov dword [edx], esi
add edx, 4
add ebx, 4
loop 0x40684b
add eax, 0xbaf08ba3
add eax, 0x45109048
xor ebx, ebx
add ebx, eax
add eax, 0x2f918468
add eax, 0xd06e7b9d
mov ecx, 0x4d3e48e5
add ecx, 0xb301b71b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401779
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401790
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x4017c5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4017c1
cmp edi, eax
jae 0x4017c5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4017b3
cmp edi, eax
jb 0x4017c9
xor eax, eax
jmp 0x4017d3
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401bb1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x88], vtable.KMD5.0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x51b8fc
mov eax, dword [0x519a54]
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.0048a5e3
test eax, eax
je 0x401d3f
mov ebx, dword [ebp - 4]
cmp dword [ebx - 0xc], 0
je 0x401d52
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d52
push 0x5c
lea esi, [ebp - 4]
call fcn.00401d99
cmp eax, 0xffffffff
je 0x401d52
mov ecx, dword [ebx - 0xc]
lea edx, [eax + 1]
lea eax, [ebp - 0x14]
push eax
sub ecx, edx
mov eax, esi
call fcn.0040223d
mov esi, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0xc]
call fcn.00401d6d
lea eax, [esi - 0x10]
call fcn.0040153b
push dword [ebp - 0xc]
lea esi, [ebp - 0x18c]
call fcn.004020e1
push dword [eax]
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call fcn.00401b70
lea eax, [ebp - 0x188]
cmp dword [ebp - 0x18c], eax
je 0x401c97
push dword [ebp - 0x18c]
call fcn.00492a2f
pop ecx
mov byte [ebp - 0x28], 0
xor eax, eax
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea edi, [ebp - 0x88]
call fcn.00446864
test eax, eax
je 0x401d47
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00492ac0
mov eax, dword [0x519a54]
add esp, 0xc
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
xor esi, esi
movzx eax, byte [ebp + esi - 0x28]
push eax
push 0x4ec83c
lea ecx, [ebp - 4]
call fcn.00401e1d
inc esi
cmp esi, 0x10
pop ecx
pop ecx
jl 0x401cdf
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x401d0e
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.0040208c
mov edi, dword [ebp - 0x10]
lea eax, [esi - 0x10]
call fcn.0040153b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
lea eax, [ebx - 0x10]
call fcn.0040153b
add dword [ebp - 8], 4
cmp dword [ebp - 8], 0x51b908
jl 0x401be1
jmp 0x401d5a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x401d55
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
lea eax, [ebx - 0x10]
call fcn.0040153b
lea ecx, [ebp - 0x88]
call fcn.0044683a
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret