joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4658b0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46591a
mov eax, ebx
call fcn.00467bf4
test al, al
jne 0x46591a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404aa8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x465907
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x465927
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a0c
jmp 0x465927
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a0c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x466d18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x466d86
mov eax, esi
call fcn.0044fc1c
test al, al
je 0x466d86
mov eax, dword [ebx + 0x84]
call fcn.0044f86c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x466d86
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x466d7a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044f86c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004477f4
jmp 0x466d86
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00466b54
pop esi
pop ebx
ret

Function at 0x46ac2c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46ac5a
mov eax, ebx
call fcn.0046b6e0
cmp dword [ebx + 0x40], 0
je 0x46ac53
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46accb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46acbd
cmp dword [ebx + 8], 0
je 0x46ac7c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46ac8e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46acbd
cmp dword [ebx + 8], 0
je 0x46ac6f
cmp eax, 3
je 0x46aca1
dec eax
jne 0x46ac6f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46ac6f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46ac6f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46ace9
cmp dword [ebx + 0x14], 0xcc
je 0x46ace9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046acf4
pop ebx
ret
Function at 0x49d3d8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0044fc1c
test al, al
je 0x49d43a
cmp bl, 7
jne 0x49d40f
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
movzx edi, byte [esp]
sub edi, 0x30
jmp 0x49d414
mov edi, ebx
and edi, 0x7f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xe0]
test eax, eax
je 0x49d43a
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xe0]
push edi
push 0
push 0x100f
push eax
call sub.user32.dll_SendMessageA
mov byte [esi + 0x268], bl
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a06e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4a0739
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4a0720
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4a0710
jmp 0x4a0739
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4a0721
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ec10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407010]
cmp eax, ebx
jne 0x402af7
mov esi, dword [0x407008]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [0x40701c]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [0x40701c]
push 2
call fcn.00405e35
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x42ec10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x42ec10], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407014]
test eax, eax
jne 0x402af4
jmp 0x402af7

Function at 0x4059cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407010]
test eax, eax
jne 0x405a40
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [section..rdata]
test eax, eax
jne 0x405a2f
cmp dword [ebp + 0x14], 1
je 0x405a31
cmp dword [ebp + 0x14], 2
je 0x405a31
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [0x40701c]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x402756
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40acc8]
jne 0x402760
repz ret
jmp fcn.00401fae

Function at 0x402765
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404315
xor ebx, ebx
cmp dword [0x40d890], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40283a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4027a5
xor eax, eax
jmp 0x4028fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40279e
push eax
call fcn.0040334e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d890], eax
call esi
push eax
call fcn.0040334e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d894], eax
call esi
push eax
call fcn.0040334e
mov dword [0x40d898], eax
lea eax, [ebp - 8]
push eax
call fcn.00406d77
test eax, eax
pop ecx
pop ecx
je 0x402808
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004073a0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40283a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040334e
cmp eax, ebx
pop ecx
mov dword [0x40d8a0], eax
je 0x40283a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040334e
pop ecx
mov dword [0x40d89c], eax
mov eax, dword [0x40d89c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4028b3
cmp dword [0x40d8a0], esi
je 0x4028b3
push eax
call fcn.00402dfc
pop ecx
call eax
cmp eax, ebx
je 0x402880
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40d8a0]
call fcn.00402dfc
pop ecx
call eax
test eax, eax
je 0x402880
test byte [ebp - 0x18], 1
jne 0x4028b3
lea eax, [ebp - 0xc]
push eax
call fcn.00406dae
test eax, eax
pop ecx
je 0x40289b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004073a0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4028aa
or dword [ebp + 0x10], 0x200000
jmp 0x4028e4
or dword [ebp + 0x10], 0x40000
jmp 0x4028e4
mov eax, dword [0x40d894]
cmp eax, esi
je 0x4028e4
push eax
call fcn.00402dfc
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4028e4
mov eax, dword [0x40d898]
cmp eax, esi
je 0x4028e4
push dword [ebp - 4]
push eax
call fcn.00402dfc
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40d890]
call fcn.00402dfc
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a44
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f20
test esi, esi
jne 0x402a7a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404010
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c54
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x422008], 0x8088405
inc edx
mov dword [ebx + 0x422008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40307c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x422024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403114
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030f4
xor eax, eax
push ebp
push 0x4030ed
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 0x403130
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x422024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x422024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403da4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42404c], 0
je 0x403e05
cmp word [0x424220], 0xd7b2
jne 0x403dcd
cmp dword [0x424228], 0
jbe 0x403dcd
mov eax, 0x42421c
call dword [0x424238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x422070
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 0x403e2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x422034], 0
jne 0x403e21
push 0
push 0x422068
push 0x422070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405400
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405630
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405483
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405630
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405483
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40564c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40550c
xor eax, eax
push ebp
push 0x405505
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405248
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4054ea
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40566c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4054ea
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40550c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405626
cmp byte [ebp - 0xd], 0
jne 0x405553
cmp byte [ebp - 0x12], 0
je 0x405626
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40556c
dec ebx
cmp byte [ebx], 0x2e
je 0x40557b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40556b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405626
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4055b8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405626
cmp byte [ebp - 0xd], 0
je 0x405626
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405626
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d7a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404190
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d81
lea eax, [ebp - 0x10]
call fcn.00403f20
ret

Function at 0x40a0c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a0f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404010
jmp 0x40a102
mov eax, ebx
mov edx, esi
call fcn.00403f74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a10c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a12d
mov al, byte [esp]
jmp 0x40a12f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a7b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a62c
mov eax, dword [0x423d6c]
cmp byte [eax], 0
je 0x40a830
mov eax, dword [0x423c48]
call fcn.00402b60
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004079f8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a878
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a866
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x423c20]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x424668]
call fcn.0040520c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b55c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b5c0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404190
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407568
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5c7
lea eax, [ebp - 0xc]
call fcn.00403f20
ret

Function at 0x41b8a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x422550
push 0x41b9c8
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x41b8c4
cmp dword [ebx], 0xffffffff
jne 0x41b8ca
xor eax, eax
mov dword [ebx], eax
pop ebx
ret
push 0x41b9d4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422518], eax
push 0x41b9ec
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42251c], eax
push 0x41b9fc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422520], eax
push 0x41ba14
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422524], eax
push 0x41ba2c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422528], eax
push 0x41ba40
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42252c], eax
push 0x41ba58
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422530], eax
push 0x41ba6c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422534], eax
push 0x41ba84
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422538], eax
push 0x41baa0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42253c], eax
push 0x41babc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422540], eax
push 0x41bacc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422544], eax
push 0x41badc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x422548], eax
push 0x41baf0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42254c], eax
pop ebx
ret
Function at 0x41f260
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
test dl, dl
jne 0x41f329
mov eax, dword [esi + 0x30]
call fcn.00404f64
mov dword [esp + 4], eax
mov byte [esp], 0xb
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], eax
xor edi, edi
mov edx, dword [esp + 4]
dec edx
mov eax, dword [esp + 8]
sub eax, edx
jg 0x41f2b9
dec eax
and ecx, 0xff
mov ebx, dword [esi + 0x30]
movzx ebx, byte [ebx + edx]
add ecx, ebx
xor ebx, ebx
mov bl, byte [esp]
add ecx, ebx
and ecx, 0xff
dec edx
inc eax
jne 0x41f299
mov byte [esp + 0xc], 1
mov eax, dword [esp + 8]
inc eax
cdq
idiv dword [esp + 4]
mov dword [esp + 8], edx
mov eax, edi
test eax, eax
jl 0x41f2f8
inc eax
xor edx, edx
mov ebx, edx
shl ebx, 6
mov ebp, dword [esi + 0x38]
mov bx, word [ebp + ebx*8 + 4]
mov ebp, ecx
and ebp, 0xff
cmp bx, bp
jne 0x41f2f4
mov byte [esp + 0xc], 0
inc edx
dec eax
jne 0x41f2d5
cmp byte [esp + 0xc], 0
je 0x41f312
mov eax, edi
shl eax, 6
mov edx, dword [esi + 0x38]
xor ebx, ebx
mov bl, cl
mov word [edx + eax*8 + 4], bx
jmp 0x41f31a
inc byte [esp]
jmp 0x41f28b
inc edi
cmp edi, 0x100
jne 0x41f28b
jmp 0x41f390
call fcn.00402aa4
xor edi, edi
mov byte [esp + 0xc], 1
mov eax, pe_nt_image_headers32
call fcn.00402c54
mov ecx, eax
mov eax, edi
test eax, eax
jl 0x41f36d
inc eax
xor edx, edx
mov ebx, edx
shl ebx, 6
mov ebp, dword [esi + 0x38]
mov bx, word [ebp + ebx*8 + 4]
mov ebp, ecx
and ebp, 0xff
cmp bx, bp
jne 0x41f369
mov byte [esp + 0xc], 0
inc edx
dec eax
jne 0x41f34a
cmp byte [esp + 0xc], 0
je 0x41f330
mov eax, edi
shl eax, 6
mov edx, dword [esi + 0x38]
and ecx, 0xff
mov word [edx + eax*8 + 4], cx
inc edi
cmp edi, 0x100
jne 0x41f330
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41f398
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov byte [esp], dl
mov ebx, eax
xor esi, esi
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
call fcn.00404f64
mov dword [esp + 8], eax
cmp byte [esp], 0
je 0x41f42e
mov edi, 1
inc esi
mov eax, 0xff
call fcn.00402c54
mov edx, eax
inc edx
mov eax, dword [ebx + 0x38]
cmp word [eax + edx*2 + 4], 0x400
jne 0x41f3c4
mov al, 1
test al, al
je 0x41f41e
xor eax, eax
lea ecx, [esi + eax]
and ecx, 0x800000ff
jns 0x41f3f8
dec ecx
or ecx, 0xffffff00
inc ecx
shl ecx, 6
mov ebp, dword [ebx + 0x38]
mov cx, word [ebp + ecx*8 + 4]
push ecx
mov ecx, eax
shl ecx, 6
mov ebp, dword [ebx + 0x38]
lea ecx, [ebp + ecx*8]
pop ebp
mov word [ecx + edx*2 + 4], bp
inc eax
cmp eax, 0x100
jne 0x41f3e5
xor eax, eax
inc edi
cmp edi, 0x100
jne 0x41f3c3
jmp 0x41f4bb
mov edi, 1
inc esi
inc dword [esp + 4]
lea eax, [edi + 0x25]
add eax, dword [esp + 4]
cdq
idiv dword [esp + 8]
mov eax, dword [ebx + 0x30]
movzx eax, byte [eax + edx]
add eax, dword [esp + 4]
xor edx, edx
mov dl, byte [ebx + 0x34]
add eax, edx
mov ecx, 0xff
cdq
idiv ecx
inc edx
mov eax, dword [ebx + 0x38]
cmp word [eax + edx*2 + 4], 0x400
jne 0x41f434
mov al, 1
test al, al
je 0x41f4ae
xor eax, eax
lea ecx, [esi + eax]
and ecx, 0x800000ff
jns 0x41f486
dec ecx
or ecx, 0xffffff00
inc ecx
shl ecx, 6
mov ebp, dword [ebx + 0x38]
mov cx, word [ebp + ecx*8 + 4]
push ecx
mov ecx, eax
shl ecx, 6
mov ebp, dword [ebx + 0x38]
lea ecx, [ebp + ecx*8]
pop ebp
mov word [ecx + edx*2 + 4], bp
inc eax
cmp eax, 0x100
jne 0x41f473
xor eax, eax
inc edi
cmp edi, 0x100
jne 0x41f433
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41f5e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov ebp, edx
mov esi, eax
mov eax, ebp
call fcn.00404f64
mov edi, eax
cmp edi, 1
jl 0x41f6e7
push edi
mov eax, ebx
mov ecx, 1
mov edx, dword [0x41ee4c]
call fcn.00405120
add esp, 4
mov edx, dword [ebx]
mov eax, ebp
mov ecx, edi
call fcn.004028b8
cmp edi, 1
jne 0x41f64a
mov eax, dword [ebx]
movzx eax, byte [eax]
shl eax, 5
lea eax, [esi + eax*8]
xor edx, edx
mov dl, byte [esi + 0x34]
mov al, byte [eax + edx + 0x1003c]
mov edx, dword [ebx]
mov byte [edx], al
jmp 0x41f6e7
mov edx, edi
sub edx, 2
test edx, edx
jl 0x41f67a
inc edx
xor eax, eax
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax]
shl ecx, 5
lea ecx, [esi + ecx*8]
mov ebp, dword [ebx]
movzx ebp, byte [ebp + eax + 1]
mov cl, byte [ecx + ebp + 0x1003c]
mov ebp, dword [ebx]
mov byte [ebp + eax], cl
inc eax
dec edx
jne 0x41f656
mov eax, dword [ebx]
movzx eax, byte [eax + edi - 1]
shl eax, 5
lea eax, [esi + eax*8]
mov dl, byte [esi + 0x34]
xor dl, 0x55
and edx, 0xff
mov al, byte [eax + edx + 0x1003c]
mov edx, dword [ebx]
mov byte [edx + edi - 1], al
mov eax, edi
dec eax
cmp eax, 1
jl 0x41f6cc
mov edx, dword [ebx]
movzx edx, byte [edx + eax]
shl edx, 5
lea edx, [esi + edx*8]
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax - 1]
mov dl, byte [edx + ecx + 0x1003c]
mov ecx, dword [ebx]
mov byte [ecx + eax], dl
dec eax
test eax, eax
jne 0x41f6a8
mov eax, dword [ebx]
movzx eax, byte [eax]
shl eax, 5
lea eax, [esi + eax*8]
xor edx, edx
mov dl, byte [esi + 0x34]
mov al, byte [eax + edx + 0x1003c]
mov edx, dword [ebx]
mov byte [edx], al
pop ebp
pop edi
pop esi
pop ebx
ret