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

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x428cc1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040383c
jmp 0x428ccb
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.004037f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4298c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x4298f8
mov eax, esi
call fcn.0041d3e8
test al, al
je 0x4298f8
mov eax, dword [ebx + 0x64]
call fcn.0041d250
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4298f8
push 0
mov eax, dword [ebx + 0x64]
call fcn.0041d250
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x435a30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x435bd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x18]
call fcn.00403b98
push eax
push 0
push 0x435be0
push 0x435be8
call sub.KERNEL32.DLL_GetPrivateProfileIntA
mov ebx, eax
mov eax, dword [esi + 0x18]
call fcn.00403b98
push eax
mov ecx, 0x435bf4
mov edx, 0x435bfc
lea eax, [esi + 0x61c]
call fcn.004331b4
mov eax, esi
call fcn.004357ac
test ebx, ebx
jne 0x435ab2
mov eax, dword [0x437a20]
mov eax, dword [eax]
call fcn.00434cec
jmp 0x435bab
test ebx, ebx
jle 0x435bab
mov eax, dword [esi + 0x18]
call fcn.00403b98
push eax
push 0x201
lea eax, [ebp - 0x235]
push eax
lea edx, [ebp - 0x240]
mov eax, ebx
call fcn.00406818
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x23c]
mov edx, 0x435c08
call fcn.00403a20
mov eax, dword [ebp - 0x23c]
call fcn.00403b98
push eax
push 0x435c14
lea edx, [ebp - 0x240]
mov eax, ebx
call fcn.00406818
mov eax, dword [ebp - 0x240]
call fcn.00403b98
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x235]
lea eax, [ebp - 4]
call fcn.0040383c
mov eax, dword [esi + 0x18]
call fcn.00403b98
push eax
lea edx, [ebp - 0x23c]
mov eax, ebx
call fcn.00406818
mov eax, dword [ebp - 0x23c]
call fcn.00403b98
mov edx, eax
mov ecx, 0x435bf4
lea eax, [ebp - 0x10]
call fcn.00432ff0
mov eax, dword [esi + 0x18]
call fcn.00403b98
push eax
lea edx, [ebp - 0x23c]
mov eax, ebx
call fcn.00406818
mov eax, dword [ebp - 0x23c]
call fcn.00403b98
mov edx, eax
mov ecx, 0x435bf4
lea eax, [ebp - 0x34]
call fcn.004331b4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0043557c
dec ebx
test ebx, ebx
jg 0x435aba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435bd8
lea eax, [ebp - 0x240]
mov edx, 2
call fcn.0040377c
lea eax, [ebp - 4]
call fcn.00403758
ret
Function at 0x10001065
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 2
xor edx, edx
lea ecx, [edx + edi]
mov al, byte [ecx]
cmp al, 0x41
jb 0x1000108a
cmp al, 0x5a
ja 0x1000108a
sub al, 0x41
jmp 0x100010a0
cmp al, 0x61
jb 0x10001096
cmp al, 0x7a
ja 0x10001096
sub al, 0x47
jmp 0x100010a0
cmp al, 0x30
jb 0x100010a4
cmp al, 0x39
ja 0x100010a4
add al, 4
mov byte [ecx], al
jmp 0x100010bd
cmp al, 0x2b
jne 0x100010ad
mov byte [ecx], 0x3e
jmp 0x100010bd
cmp al, 0x2f
jne 0x100010b6
mov byte [ecx], 0x3f
jmp 0x100010bd
cmp al, 0x3d
jne 0x100010bd
mov byte [ecx], 0
inc edx
cmp edx, 4
jl 0x10001079
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 1]
mov edx, ecx
sub edi, ecx
sub edx, eax
mov dword [ebp - 8], 3
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 2
lea esi, [edx + eax]
mov bl, byte [esi + edi]
shl bl, cl
mov cl, 8
sub cl, byte [ebp - 4]
mov byte [eax], bl
mov bl, byte [esi]
shr bl, cl
or byte [eax], bl
inc eax
dec dword [ebp - 8]
jne 0x100010d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000354c
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x1001e390]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x24
mov eax, 0x10016982
call fcn.10008caf
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x80]
push 0x10017234
push eax
mov dword [ebp - 0x14], ecx
call fcn.10009685
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
pop ecx
jne 0x10003592
xor al, al
jmp 0x1000361d
push 2
push edi
push esi
call fcn.1000953c
push esi
call fcn.10009447
push edi
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.1000953c
add esp, 0x1c
xor ebx, ebx
cmp dword [ebp - 0x10], edi
je 0x100035cf
push dword [ebp - 0x10]
call fcn.10008420
push esi
push dword [ebp - 0x10]
mov ebx, eax
push 1
push ebx
call fcn.10009294
add esp, 0x14
push esi
call fcn.10008f7c
pop ecx
lea ecx, [ebp]
call fcn.10003eee
push dword [ebp - 0x10]
lea ecx, [ebp]
push ebx
call fcn.10003eb3
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp]
call fcn.10004030
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push edi
push eax
mov dword [ebp - 4], edi
call fcn.100014b7
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.100011d7
cmp ebx, edi
je 0x1000361b
push ebx
call fcn.10008db9
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.10008ca0
add ebp, 0x74
leave
ret

Function at 0x100036c1
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x10004056
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, 0x2904
push esi
call fcn.100086eb
push esi
xor esi, esi
mov edi, eax
push esi
push edi
call fcn.10008500
push 0x2800
push 0x1001f488
push edi
call fcn.1000b1d0
lea eax, [edi + 0x2800]
push str.http:__dump.chartergame.com_
push eax
call fcn.100096a0
add esp, 0x24
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x10005b52
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret
Function at 0x100045ca
Capabilities:
Acquire debug privileges
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf01ff
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1000461e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100173a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
leave
ret
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.10008500
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push dword [ebp - 4]
jne 0x10004675
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1001737c
jmp 0x10004614
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret

Function at 0x1000467f
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1001e390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x100046fe
lea eax, [ebp - 0x110]
push eax
push 4
lea eax, [ebp - 0x10c]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x100046f7
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x100046f6
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.1000ba50
add esp, 0xc
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10008ca0
leave
ret
Function at 0x10004ca5
Capabilities:
Enumerate processes

Disassembly:
push 0x18c
mov eax, 0x10016a58
call fcn.10008d18
mov edi, dword [ebp + 8]
push 0xf
pop esi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], esi
call fcn.100010fd
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
call fcn.100010fd
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.100017d8
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x178], eax
jne 0x10004d19
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100011d7
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.100011d7
mov eax, esi
call fcn.10008d9b
ret
lea ecx, [ebp - 0x170]
push ecx
push eax
mov dword [ebp - 0x170], 0x128
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004b6f
mov edi, eax
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004b8f
mov ebx, eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004b6f
mov esi, 0x1000becc
push esi
push dword [edi + 4]
push dword [edi]
push dword [ebx + 4]
push dword [ebx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x198]
push eax
call fcn.10004c15
add esp, 0x20
cmp dword [ebp - 0x174], 0
je 0x10004cf7
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x48]
call fcn.100017d8
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x48]
call fcn.10004b6f
mov edi, eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x48]
call fcn.10004b8f
mov ebx, eax
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x48]
call fcn.10004b6f
push esi
push dword [edi + 4]
push dword [edi]
push dword [ebx + 4]
push dword [ebx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x188]
push eax
call fcn.10004c15
add esp, 0x20
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.10004aa5
cmp eax, 0xffffffff
jne 0x10004e29
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x178]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10004d98
jmp 0x10004cf7
mov esi, dword [ebp - 0x168]
jmp 0x10004cf9

Function at 0x10004e34
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
call fcn.10004ca5
test eax, eax
pop ecx
je 0x10004e5d
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10004e5d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
ret
Function at 0x100053e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x1001e390]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x4c
mov eax, 0x10016b1c
call fcn.10008caf
mov ebx, dword [ebp + 0x214]
xor edi, edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], edi
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x218]
mov byte [ebp - 4], 3
call fcn.100050c1
pop ecx
pop ecx
mov dword [ebp - 0x10], edi
mov esi, 0x104
cmp dword [ebp - 0x20], edi
je 0x10005519
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp - 0x10], eax
jae 0x10005519
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.10004740
mov eax, dword [eax]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp]
push edi
push eax
call fcn.10008500
push esi
lea eax, [ebp + 0x104]
push edi
push eax
call fcn.10008500
add esp, 0x18
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
lea eax, [ebp + 0x104]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x58]
call fcn.100018e1
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.10001fc3
push edi
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.100011d7
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x58]
call fcn.100018e1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.10001fc3
push edi
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.100011d7
inc dword [ebp - 0x10]
jmp 0x10005453
lea ecx, [ebp - 0x24]
call fcn.10004bb4
lea ecx, [ebp - 0x38]
call fcn.10001c5e
push edi
push 1
lea ecx, [ebp + 0x21c]
call fcn.100011d7
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10008ca0
add ebp, 0x20c
leave
ret
Function at 0x10008ca0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e390]
jne 0x10008caa
repz ret
jmp fcn.1000d9ec
Function at 0x1001329b
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 + 0x1001f0f0]
je 0x100132b6
inc edi
cmp edi, 0x17
jb 0x100132a7
cmp edi, 0x17
jae 0x10013436
push ebp
push 3
call fcn.100160ae
cmp eax, 1
pop ecx
je 0x10013402
push 3
call fcn.100160ae
test eax, eax
pop ecx
jne 0x100132ea
cmp dword [0x10021f10], 1
je 0x10013402
cmp ebx, 0xfc
je 0x10013435
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10022560
push ebp
call fcn.1000b535
add esp, 0xc
test eax, eax
je 0x10013320
push esi
push esi
push esi
push esi
push esi
call fcn.100087a9
add esp, 0x14
push 0x104
mov esi, 0x10022579
push esi
push 0
mov byte [0x1002267d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10013364
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000b535
add esp, 0xc
test eax, eax
je 0x10013364
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100087a9
add esp, 0x14
push esi
call fcn.10008dc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100133a9
push esi
call fcn.10008dc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10022874
push 0x1001a5ec
sub ecx, eax
push ecx
push eax
call fcn.100159a6
add esp, 0x14
test eax, eax
je 0x100133a9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100087a9
add esp, 0x14
jmp 0x100133ab
xor esi, esi
push 0x1001a5e8
push ebx
push ebp
call fcn.100158e5
add esp, 0xc
test eax, eax
je 0x100133cb
push esi
push esi
push esi
push esi
push esi
call fcn.100087a9
add esp, 0x14
push dword [edi*8 + 0x1001f0f4]
push ebx
push ebp
call fcn.100158e5
add esp, 0xc
test eax, eax
je 0x100133ed
push esi
push esi
push esi
push esi
push esi
call fcn.100087a9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10015ef1
add esp, 0xc
jmp 0x10013435
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10013435
cmp ebp, 0xffffffff
je 0x10013435
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001f0f4]
push dword [esi]
call fcn.10008dc0
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 0x10015ef1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000c736
xor ebx, ebx
cmp dword [0x100228e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10015fc7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100160a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100160a7
push eax
call fcn.1000c6c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100228e8], eax
call esi
push eax
call fcn.1000c6c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100228ec], eax
call esi
push eax
call fcn.1000c6c8
mov dword [0x100228f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000f537
test eax, eax
pop ecx
pop ecx
je 0x10015f95
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100087a9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10015fc7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000c6c8
cmp eax, ebx
pop ecx
mov dword [0x100228f8], eax
je 0x10015fc7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000c6c8
pop ecx
mov dword [0x100228f4], eax
mov eax, dword [0x100228f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001604c
cmp dword [0x100228f8], ecx
je 0x1001604c
push eax
call fcn.1000c73f
push dword [0x100228f8]
mov esi, eax
call fcn.1000c73f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001604c
cmp edi, ebx
je 0x1001604c
call esi
cmp eax, ebx
je 0x10016019
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10016019
test byte [ebp - 0x18], 1
jne 0x1001604c
lea eax, [ebp - 0x10]
push eax
call fcn.1000f56e
test eax, eax
pop ecx
je 0x10016034
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100087a9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10016043
or dword [ebp + 0x10], 0x200000
jmp 0x10016087
or dword [ebp + 0x10], 0x40000
jmp 0x10016087
mov eax, dword [0x100228ec]
cmp eax, dword [ebp - 8]
je 0x10016087
push eax
call fcn.1000c73f
cmp eax, ebx
pop ecx
je 0x10016087
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10016087
mov eax, dword [0x100228f0]
cmp eax, dword [ebp - 8]
je 0x10016087
push eax
call fcn.1000c73f
cmp eax, ebx
pop ecx
je 0x10016087
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100228e8]
call fcn.1000c73f
cmp eax, ebx
pop ecx
je 0x100160a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100160a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403164
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4031a0
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4031c0
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405604
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033f8
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.00405394
test esi, esi
jne 0x40342e
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.00405484
jmp 0x40344c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032fc
mov edi, eax
test esi, esi
je 0x40344c
cmp dword [ebx], 0
je 0x40344c
dec esi
jmp 0x403435
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404228
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x67a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4042c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042a0
xor eax, eax
push ebp
push 0x404299
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 0x4042dc
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 0x4042a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x67a024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x67a024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405140
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6c204c], 0
je 0x4051a1
cmp word [0x6c2220], 0xd7b2
jne 0x405169
cmp dword [0x6c2228], 0
jbe 0x405169
mov eax, 0x6c221c
call dword [0x6c2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4051c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x67a030], 0
jne 0x4051bd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405318
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x67a038], 0
je 0x40533e
mov edx, esi
mov eax, ebx
call dword [0x67a038]
jmp 0x40534d
mov eax, 8
call fcn.00402f94
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x6c204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4052e0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409d92
test eax, edx
je 0x409d95
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409d55
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409d7b
add ecx, 4
js 0x409d6b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409d78
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409da1
test edx, edx
jne 0x409d48
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405824
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40adad
test al, 0x10
je 0x40adb1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405824
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40add1
test al, 0x10
jne 0x40add5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ee84
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 0x40eebd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405484
jmp 0x40eec6
mov eax, ebx
mov edx, esi
call fcn.004053e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40eed0
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 0x40eef2
movzx eax, byte [esp]
jmp 0x40eef4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret