joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436f3a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x456dd0]
je 0x436f55
inc edi
cmp edi, 0x17
jb 0x436f46
cmp edi, 0x17
jae 0x4370d5
push ebp
push 3
call fcn.0043d0e4
cmp eax, 1
pop ecx
je 0x4370a1
push 3
call fcn.0043d0e4
test eax, eax
pop ecx
jne 0x436f89
cmp dword [0x4564c0], 1
je 0x4370a1
cmp ebx, 0xfc
je 0x4370d4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x459e38
push ebp
call fcn.0042f610
add esp, 0xc
test eax, eax
je 0x436fbf
push esi
push esi
push esi
push esi
push esi
call fcn.00433adf
add esp, 0x14
push 0x104
mov esi, 0x459e51
push esi
push 0
mov byte [0x459f55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x437003
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042f610
add esp, 0xc
test eax, eax
je 0x437003
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00433adf
add esp, 0x14
push esi
call fcn.004315d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x437048
push esi
call fcn.004315d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45a14c
push 0x449c0c
sub ecx, eax
push ecx
push eax
call fcn.00431f43
add esp, 0x14
test eax, eax
je 0x437048
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00433adf
add esp, 0x14
jmp 0x43704a
xor esi, esi
push 0x449c08
push ebx
push ebp
call fcn.0042f59f
add esp, 0xc
test eax, eax
je 0x43706a
push esi
push esi
push esi
push esi
push esi
call fcn.00433adf
add esp, 0x14
push dword [edi*8 + 0x456dd4]
push ebx
push ebp
call fcn.0042f59f
add esp, 0xc
test eax, eax
je 0x43708c
push esi
push esi
push esi
push esi
push esi
call fcn.00433adf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043cf27
add esp, 0xc
jmp 0x4370d4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4370d4
cmp ebp, 0xffffffff
je 0x4370d4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x456dd4]
push dword [esi]
call fcn.004315d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43cf27
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00433166
xor ebx, ebx
cmp dword [0x45a38c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43cffd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d0dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44ad9c
push edi
call esi
cmp eax, ebx
je 0x43d0dd
push eax
call fcn.004330f8
mov dword [esp], 0x44ad8c
push edi
mov dword [0x45a38c], eax
call esi
push eax
call fcn.004330f8
mov dword [esp], 0x44ad78
push edi
mov dword [0x45a390], eax
call esi
push eax
call fcn.004330f8
mov dword [0x45a394], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004319ff
test eax, eax
pop ecx
pop ecx
je 0x43cfcb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433adf
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43cffd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004330f8
cmp eax, ebx
pop ecx
mov dword [0x45a39c], eax
je 0x43cffd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004330f8
pop ecx
mov dword [0x45a398], eax
mov eax, dword [0x45a398]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43d082
cmp dword [0x45a39c], ecx
je 0x43d082
push eax
call fcn.0043316f
push dword [0x45a39c]
mov esi, eax
call fcn.0043316f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43d082
cmp edi, ebx
je 0x43d082
call esi
cmp eax, ebx
je 0x43d04f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d04f
test byte [ebp - 0x18], 1
jne 0x43d082
lea eax, [ebp - 0x10]
push eax
call fcn.00431a36
test eax, eax
pop ecx
je 0x43d06a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433adf
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43d079
or dword [ebp + 0x10], 0x200000
jmp 0x43d0bd
or dword [ebp + 0x10], 0x40000
jmp 0x43d0bd
mov eax, dword [0x45a390]
cmp eax, dword [ebp - 8]
je 0x43d0bd
push eax
call fcn.0043316f
cmp eax, ebx
pop ecx
je 0x43d0bd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43d0bd
mov eax, dword [0x45a394]
cmp eax, dword [ebp - 8]
je 0x43d0bd
push eax
call fcn.0043316f
cmp eax, ebx
pop ecx
je 0x43d0bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a38c]
call fcn.0043316f
cmp eax, ebx
pop ecx
je 0x43d0dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d0df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441d6e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4564c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00441d03
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00431520
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x441dbd
cmp dword [ebp - 0x1c], 5
jb 0x441dd5
jmp 0x441dd1
cmp dword [ebp - 0x10], 1
jne 0x441dd5
cmp dword [ebp - 0x1c], 4
ja 0x441dd1
jne 0x441dd5
cmp dword [ebp - 0x18], 0
jbe 0x441dd5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44b5e0
call fcn.00441bf4
test eax, eax
jge 0x441df6
mov byte [0x45a55c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042dbc0
add ebp, 0x78
leave
ret
Function at 0x4014be
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x128
mov esi, eax
lea eax, [ebp - 0x10]
mov ebx, edx
push eax
mov eax, dword [0x42f918]
or eax, 8
mov dword [ebp - 0x120], ecx
push eax
push 0
push edx
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x401589
jmp 0x401527
cmp dword [ebp - 0x120], 0
je 0x401515
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
add esp, 0xc
jmp 0x401589
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, edi
call fcn.004014be
test eax, eax
jne 0x401541
jmp 0x40152d
lea edi, [ebp - 0x115]
push 0x105
push edi
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x4014f7
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push 2
call fcn.004060cb
add esp, 0xc
test eax, eax
je 0x401568
push 0
push dword [0x42f918]
push ebx
push esi
call eax
jmp 0x401589
mov eax, 1
cmp dword [0x42f918], 0
jne 0x401589
push edi
push edi
push ebx
push esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
pop ebx
setne al
pop esi
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0
push eax
push ebx
push dword [ebp + 8]
push dword [0x409010]
call sub.KERNEL32.dll_ReadFile
xor edx, edx
add esp, 0xc
test eax, eax
je 0x403170
xor edx, edx
cmp dword [ebp - 8], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x4033e6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x403413
mov eax, dword [0x420c60]
test eax, eax
je 0x403407
sub esp, 0xc
push eax
call sub.USER32.dll_DestroyWindow
add esp, 0xc
mov dword [0x420c60], 0
jmp 0x403464
cmp dword [0x420c60], 0
je 0x40342b
sub esp, 0xc
push 0
call fcn.00406090
add esp, 0xc
jmp 0x403464
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [0x42f998]
jbe 0x403464
sub esp, 0xc
push 0
push 0x403715
push 0
push 0x6f
push dword [0x42f9f8]
call sub.USER32.dll_CreateDialogParamA
sub esp, 0xc
mov dword [0x420c60], eax
push 5
push eax
call sub.USER32.dll_ShowWindow
add esp, 0x18
leave
ret
Function at 0x4037d1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x439400
call fcn.004061e2
push 0x439400
call fcn.00405f98
xor edx, edx
add esp, 0xc
test eax, eax
je 0x403824
sub esp, 0xc
push 0x439400
call fcn.004062df
sub esp, 0xc
push 0
push 0x439400
call sub.KERNEL32.dll_CreateDirectoryA
push 0x439400
push 0x439000
call fcn.0040668e
mov edx, eax
add esp, 0x18
mov eax, edx
leave
ret
Function at 0x406353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov byte [ebx], 0
push edx
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4063cc
push eax
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
test eax, eax
pop ecx
jne 0x4063b4
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x4063b7
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
sub esp, 0xc
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x40668e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, 0x64
mov esi, dword [ebp + 8]
jmp 0x4066d3
mov dword [ebp - 0x10], 0x61736e
mov bl, byte [ebp - 0xe]
call sub.KERNEL32.dll_GetTickCount
mov edx, 0x1a
push esi
mov ecx, edx
xor edx, edx
div ecx
lea eax, [ebp - 0x10]
push 0
push eax
add ebx, edx
push dword [ebp + 0xc]
mov byte [ebp - 0xe], bl
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
jne 0x4066de
dec edi
cmp edi, 0xffffffff
jne 0x4066a1
mov byte [esi], 0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x4066ea
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 8]
push 0x42daa8
call fcn.0040631c
push ecx
push 0x42daa8
call fcn.00406179
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x40679f
sub esp, 0xc
push eax
call fcn.004061e2
add esp, 0xc
cmp byte [0x42f9a8], 0
jns 0x406762
mov al, byte [ebx]
test al, al
je 0x40679f
cmp al, 0x5c
jne 0x406762
jmp 0x40679f
sub esp, 0xc
push 0x42daa8
call fcn.0040611a
add esp, 0xc
test eax, eax
je 0x406750
test byte [eax], 0x10
je 0x40679f
sub esp, 0xc
push 0x42daa8
call fcn.004062aa
add esp, 0xc
jmp 0x406768
sub ebx, 0x42daa8
sub esp, 0xc
push 0x42daa8
call fcn.004062a1
add esp, 0xc
cmp eax, ebx
jg 0x406737
sub esp, 0xc
push 0x42daa8
call fcn.004062df
push 0x42daa8
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
inc eax
setne al
movzx eax, al
jmp 0x4067a1
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
pop edx
xor edx, edx
cmp eax, 0xffffffff
pop ecx
setne dl
neg edx
and edx, eax
push 0
push edx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileA
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x4067e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x406806
and eax, 0xfffffffe
push edx
push edx
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
pop ebx
pop eax
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x406873
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 1
call fcn.004060cb
add esp, 0xc
test eax, eax
je 0x4068a0
push edx
push 5
push ebx
push esi
call eax
pop edi
test eax, eax
jne 0x406a66
mov dword [0x42cea8], 0x4c554e
test ebx, ebx
je 0x4068e9
push ecx
push 1
push 0
push ebx
call fcn.004067a8
push edx
push edx
push eax
call sub.KERNEL32.dll_CloseHandle
push eax
push eax
push 0x400
push 0x42cea8
push ebx
call sub.KERNEL32.dll_GetShortPathNameA
add esp, 0x14
test eax, eax
je 0x406a6c
cmp eax, 0x400
jg 0x406a6c
push eax
push 0x400
push 0x42d2a8
push esi
call sub.KERNEL32.dll_GetShortPathNameA
pop edi
test eax, eax
je 0x406a6c
cmp eax, 0x400
jg 0x406a6c
push 0x42d2a8
push 0x42cea8
push str._s_s_r_n
push 0x42d6a8
call sub.USER32.dll_wsprintfA
pop ebx
mov dword [ebp - 0x24], eax
mov eax, dword [0x42f948]
pop esi
push dword [eax + 0x128]
push 0x42d2a8
call fcn.004063d3
sub esp, 0xc
push 4
push 0xc0000000
push 0x42d2a8
call fcn.004067a8
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x406a66
push ecx
push ecx
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebp - 0x24]
mov ebx, eax
lea eax, [eax + edx + 0xa]
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
pop eax
test esi, esi
pop edx
je 0x406a58
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x20]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x406a58
cmp ebx, dword [ebp - 0x10]
jne 0x406a58
push edi
push edi
push str._Rename__r_n
push esi
call fcn.0040680d
pop edx
test eax, eax
pop ecx
jne 0x4069de
push eax
push eax
lea eax, [esi + ebx]
push str._Rename__r_n
push eax
call fcn.0040631c
add ebx, 0xa
pop ecx
mov eax, ebx
pop edi
jmp 0x406a17
add eax, 0xa
push edx
push edx
push 0x40a397
push eax
call fcn.0040680d
mov edx, eax
pop edi
test edx, edx
pop eax
mov eax, ebx
je 0x406a17
lea ecx, [edx + 1]
lea edi, [esi + ebx]
mov edx, ecx
mov dword [ebp - 0x28], edi
jmp 0x406a0e
mov edi, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [edi + edx], al
inc edx
cmp edx, dword [ebp - 0x28]
jb 0x406a05
mov eax, ecx
sub eax, esi
push dword [ebp - 0x24]
lea eax, [esi + eax]
push 0x42d6a8
push eax
call fcn.00405fc7
push 0
push 0
push 0
push dword [ebp - 0x20]
call sub.KERNEL32.dll_SetFilePointer
mov edx, dword [ebp - 0x24]
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebx + edx]
push eax
push esi
push dword [ebp - 0x20]
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
sub esp, 0xc
push dword [ebp - 0x20]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
inc dword [0x42f8f8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x406d76
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x42e2a8], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42e2a8
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
pop edx
xor edx, edx
pop ecx
test eax, eax
je 0x406dbe
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, edx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x42e2fc], 0
push ebx
mov esi, dword [ebp + 0x10]
jne 0x406e01
xor ebx, ebx
mov edx, ebx
xor ecx, ecx
mov eax, edx
inc ecx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
cmp ecx, 8
jne 0x406ddb
mov dword [ebx*4 + 0x42e2f8], edx
inc ebx
cmp ebx, 0x100
jne 0x406dd7
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
not edx
jmp 0x406e1d
mov al, byte [ecx - 1]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x42e2f8]
dec esi
inc ecx
cmp esi, 0xffffffff
jne 0x406e0b
not edx
mov eax, edx
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x433e20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bc0cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004ac8ba
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x433ea2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004aa1a0
mov eax, dword [eax]
push 0x50f258
push eax
call fcn.0048a9f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004acb45
test bl, bl
je 0x433ea2
push 0x50f258
lea ecx, [esp + 0xc]
call fcn.004acf21
push 0x512de0
lea ecx, [esp + 0xc]
call fcn.004acf21
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x433ede
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004acb45
jmp 0x433fa9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x433f62
lea edx, [esp + 0x7c]
push 0x512ddc
push edx
call fcn.0048a9f4
add esp, 8
test eax, eax
je 0x433f62
lea eax, [esp + 0x7c]
push 0x512dd8
push eax
call fcn.0048a9f4
add esp, 8
test eax, eax
je 0x433f62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x433ef2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004acb45
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4347a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x434802
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x434810
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bc14b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5195f8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x434948
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x434876
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004acb45
xor eax, eax
jmp 0x4349bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004accce
push esi
lea ecx, [esp + 0xc]
call fcn.004acf5d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x512e18
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43499d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004347a0
test eax, eax
jne 0x43499d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.004347a0
test eax, eax
jne 0x43499d
lea eax, [esp + 0x14]
push 0x512df4
push eax
call fcn.0048bbb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43497c
lea ecx, [esp + 0x14]
push 0x512df0
push ecx
call fcn.0048bb30
mov esi, eax
add esp, 8
test esi, esi
jne 0x43497c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43497f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004acc7e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43488e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004acb45
xor eax, eax
jmp 0x4349bf
mov byte [esi], 0
push 0x512dec
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004acb45
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x446fe0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x44704e
cmp si, 0x69
ja 0x44704e
add esi, 0xffd0
cmp si, 0x11
je 0x44701e
push 0x11
call edi
test ax, ax
jge 0x44701e
or esi, 0x2000
cmp si, 0x10
je 0x447033
push 0x10
call edi
test ax, ax
jge 0x447033
or esi, 0x4000
cmp si, 0x12
je 0x447048
push 0x12
call edi
test ax, ax
jge 0x447048
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x44705b
mov esi, 0xbd
jmp 0x44700f
cmp si, 0x6e
jne 0x447068
mov esi, 0xbe
jmp 0x44700f
cmp si, 0x6f
jne 0x447009
mov esi, 0xbf
jmp 0x44700f

Function at 0x448810
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52b220]
xor edx, edx
cmp eax, edx
jne 0x448836
xor eax, eax
mov byte [eax + 0x52b120], al
inc eax
cmp eax, 0x100
jl 0x44881e
mov dword [0x52b220], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52b120
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4488c7
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 0x44889a
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 0x448868
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x448940
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 0x448993
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 0x44897a
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