joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a470
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x47a4a2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.0047a200
test eax, eax
jne 0x47a4bf
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x47a4e6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x47a534
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00479f10
test eax, eax
jne 0x47a51d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x47a503
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call fcn.00479ce0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x47a557
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x498252
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49828a
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.004962f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004962cc
jmp 0x498296
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x499945
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 0x499987
call fcn.0049f4f4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499987
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49997e
xor eax, eax
jmp 0x49998f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499995
pop edi
pop esi
pop ebx
ret 4
Function at 0x49fa24
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 0x49fa52
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49fa70
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f98a
jmp 0x49fa70
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49fa70
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f98a
test edi, edi
mov eax, edi
jne 0x49fa5a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x410726
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x4113e0
call fcn.004108c8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x410761
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410761
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410779
cmp eax, 0x20b
je 0x410766
mov dword [ebp - 0x1c], edi
jmp 0x41078d
cmp dword [ecx + 0x84], 0xe
jbe 0x410761
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x410787
cmp dword [ecx + 0x74], 0xe
jbe 0x410761
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x416a94], 0xffffffff
or dword [0x416a98], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41603c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x416038]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x416a90], eax
call fcn.004108c4
cmp dword [section..data], edi
jne 0x4107e8
push fcn.004108c4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004108b2
push 0x4113b8
push 0x4113b4
call sub.msvcrt.dll__initterm
mov eax, dword [0x416034]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x416030]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x4113b0
push 0x41139c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040335c
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x41085f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x410894
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00410901
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
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 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x101f1c60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101f1e4d
pushal
mov esi, section.DATA
lea edi, [esi - 0x161000]
push edi
or ebp, 0xffffffff
jmp 0x101f1c8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101f1c91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f1c80
mov eax, 1
add ebx, ebx
jne 0x101f1ca3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101f1cb4
jne 0x101f1cd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f1cd3
dec eax
add ebx, ebx
jne 0x101f1cc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101f1c98
add ebx, ebx
jne 0x101f1ccf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101f1d25
xor ecx, ecx
sub eax, 3
jb 0x101f1ceb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101f1d5a
sar eax, 1
mov ebp, eax
jmp 0x101f1cf6
add ebx, ebx
jne 0x101f1cf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f1cc4
inc ecx
add ebx, ebx
jne 0x101f1d04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f1cc4
add ebx, ebx
jne 0x101f1d11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101f1d06
jne 0x101f1d22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101f1d06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101f1d44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101f1d36
jmp 0x101f1c86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101f1d44
add edi, ecx
jmp 0x101f1c86
pop esi
mov edi, esi
mov ecx, 0x5c8a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101f1d62
cmp byte [edi], 0x24
jne 0x101f1d62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x101f1d67
lea edi, [esi + 0x1e6000]
mov eax, dword [edi]
or eax, eax
je 0x101f1ddf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f2a6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f2bac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101f1d94
mov ecx, edi
jns 0x101f1dc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f2bb0]
or eax, eax
je 0x101f1dd9
mov dword [ebx], eax
add ebx, 4
jmp 0x101f1db1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101f1e10
cmp al, 0xef
ja 0x101f1e03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101f1de5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101f1df2
mov ebp, dword [esi + 0x1f2bb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101f1e44
sub esp, 0xffffff80
jmp 0x100ae7d2
Function at 0x401000
Capabilities:
Accept command line arguments
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
lea ecx, [ebp - 0xc0]
call fcn.00401300
push 0
lea ecx, [ebp - 0xc0]
call fcn.00401f40
test eax, eax
jne 0x40103a
push str.Create_failed_n
call fcn.00401200
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 4], eax
mov byte [ebp - 0x71], 0
mov byte [ebp - 0x71], 0
mov dword [ebp - 0xc4], 0
jmp 0x401078
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
cmp edx, dword [ebp - 8]
jge 0x401145
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
push edx
push str.__instance_id
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401140
mov eax, dword [ebp - 0xc4]
add eax, 1
cmp eax, dword [ebp - 8]
jge 0x401140
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 4]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004022b0
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 4]
push eax
push str.instance_id:__s_n
call fcn.00401280
add esp, 8
push 0
push 0
lea ecx, [ebp - 0xc0]
push ecx
push 0x401ff0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x40112e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateTread___failed:__d_n
call fcn.00401200
add esp, 8
mov byte [ebp - 0x71], 1
mov edx, dword [ebp - 0xc8]
push edx
lea ecx, [ebp - 0xc0]
call fcn.00402280
jmp 0x401069
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
movzx ecx, byte [ebp - 0x71]
test ecx, ecx
je 0x401162
movzx edx, byte [ebp - 0x71]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x6c], 0
push 0x3c
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00402320
add esp, 0xc
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edx, dword [ebp - 0x44]
and edx, 1
je 0x40119e
movzx eax, word [ebp - 0x40]
mov dword [ebp - 0xcc], eax
jmp 0x4011a8
mov dword [ebp - 0xcc], 0xa
mov ecx, dword [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.00401eb0
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x4011e4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4011ba
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401200
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov byte [ebp - 0x400], 0
push 0x3ff
push 0
lea eax, [ebp - 0x3ff]
push eax
call fcn.00402320
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x404], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x403174
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3f6]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 0x404], 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret

Function at 0x401280
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
xor eax, eax
mov word [ebp - 0x800], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x7fe]
push ecx
call fcn.00402320
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x804], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.SPN__4x_:
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x804]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x7ec]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov dword [ebp - 0x804], 0
lea ecx, [ebp - 0x800]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret
Function at 0xa32ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x374000]
push edi
or ebp, 0xffffffff
jmp 0xa32ef2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa32ef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa32ee8
mov eax, 1
add ebx, ebx
jne 0xa32f0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa32f1c
jne 0xa32f3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa32f3b
dec eax
add ebx, ebx
jne 0xa32f28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa32f00
add ebx, ebx
jne 0xa32f37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa32f8d
xor ecx, ecx
sub eax, 3
jb 0xa32f53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa32fc2
sar eax, 1
mov ebp, eax
jmp 0xa32f5e
add ebx, ebx
jne 0xa32f5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa32f2c
inc ecx
add ebx, ebx
jne 0xa32f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa32f2c
add ebx, ebx
jne 0xa32f79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa32f6e
jne 0xa32f8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa32f6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa32fac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa32f9e
jmp 0xa32eee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa32fac
add edi, ecx
jmp 0xa32eee
pop esi
mov edi, esi
mov ecx, 0xa0a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa32fca
cmp byte [edi], 0x2a
jne 0xa32fca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa32fcf
lea edi, [esi + 0x622000]
mov eax, dword [edi]
or eax, eax
je 0xa3303e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x635688]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x63578c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa32ffc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x635790]
or eax, eax
je 0xa33038
mov dword [ebx], eax
add ebx, 4
jmp 0xa33019
call dword [esi + 0x6357a0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xa3306f
cmp al, 0xef
ja 0xa33062
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xa33044
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xa33051
mov ebp, dword [esi + 0x635794]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa330a3
sub esp, 0xffffff80
jmp 0x565a3c
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
cmp edi, 4
jb 0x4016d3
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, 4
xor ecx, ecx
sub esi, eax
lea ebx, [ecx - 0x197e3caf]
add eax, 4
xor edx, ebx
mov ebx, dword [eax - 4]
xor ebx, edx
add ecx, 0x1f565dc
mov dword [eax - 4], ebx
lea ebx, [esi + eax]
cmp ebx, edi
jbe 0x4016ad
pop esi
pop ebx
xor eax, eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x401740
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ebp
je 0x4017f1
mov ebx, dword [esp + 0x18]
cmp ebx, ebp
je 0x4017f1
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017bb
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x10]
push ebp
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017c6
cmp dword [esp + 0x10], edi
jne 0x4017dd
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
mov ebp, 0x1d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
pop esi
pop ebp
mov eax, 0x57
pop ebx
pop ecx
ret

Function at 0x401800
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 8]
neg eax
sbb eax, eax
push ecx
and eax, 0xa
mov ecx, dword [esp + 0x68]
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x68]
push eax
push 0
push 0x20
push 0
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x401871
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x58
ret
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 4]
test eax, eax
je 0x40187f
mov dword [eax], ecx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4018b2
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov dword [esp], eax
jne 0x4018b2
mov ecx, dword [esp + 4]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4018b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x58
ret
Function at 0x4018f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.004018c0
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401991
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40192e
mov dword [eax], ebx
test ebx, ebx
je 0x401980
cmp dword [esp + 0x24], ebx
jb 0x401987
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401991
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401991
mov ecx, ebx
mov esi, eax
mov eax, dword [esp + 0x20]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x401980
mov ecx, dword [0x4092b0]
push ecx
push ebx
push eax
call fcn.00401690
add esp, 0xc
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x7a
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4019a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.004018c0
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401a63
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x401a63
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4019f0
cmp eax, ebx
jne 0x401a87
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401a63
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a63
mov eax, dword [esp + 0x20]
push ebx
test eax, eax
je 0x401a51
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401a6e
mov ecx, ebx
mov edi, ebp
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.00401690
mov ecx, dword [esp + 0x28]
push ebx
push ebp
push ecx
call fcn.00401740
add esp, 0x18
mov esi, eax
jmp 0x401a73
mov edx, dword [esp + 0x20]
push esi
push edx
call fcn.00401740
add esp, 0xc
mov esi, eax
jmp 0x401a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, 8
test ebp, ebp
je 0x401a80
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret