joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e1c7
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x490120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0xb
mov dword [ebp - 0x628], ebx
push str.getTempPath
mov ecx, 0x491804
mov dword [ebp - 0x640], esi
mov dword [ebp - 4], ebx
call fcn.004031a0
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp byte [ebp + 0xc], bl
je 0x41e580
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call fcn.004047c0
jmp 0x41e6a1
lea edx, [ebp - 0x624]
push edx
push ebx
push 0x473bc4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x624]
push ecx
mov ecx, esi
call fcn.004047c0
jmp 0x41e6a1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044dcfc
mov esp, ebp
pop ebp
ret
Function at 0x423270
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e960
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x490120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x8c], 0
mov dword [ebp - 4], 0
je 0x4232df
call fcn.00422e70
test eax, eax
je 0x4232f3
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x423180
push 0
push 0
call fcn.004501fc
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x4232df
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4232df
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [ebp - 0x18]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
test eax, eax
jne 0x4232df
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4240a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ea80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x490120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
call fcn.00441dc1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42419d
call fcn.00441dc1
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42419d
call fcn.00441dc1
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x424196
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42418f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42418f
push edi
push eax
push ecx
call fcn.0044e420
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x14]
push edi
push esi
call fcn.00423d20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x425080
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ed77
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x490120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x425102
lea eax, [ebp - 0x420]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42511e
cmp eax, 2
jne 0x42510c
push str.Key_not_found._n
call fcn.004502cb
add esp, 4
mov eax, 1
jmp 0x4255c3
push str.Error_opening_key._n
call fcn.004502cb
add esp, 4
jmp 0x4255c1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea ebx, [esi + eax*2]
mov dword [ebp - 0x42c], ebx
je 0x42514c
mov ecx, 0x5c
mov word [ebx], cx
add ebx, 2
xor edx, edx
mov dword [ebp - 0x42c], ebx
mov word [ebx], dx
lea eax, [ebp - 0x438]
push eax
mov eax, dword [ebp - 0x420]
push 0
push 0
push 0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push eax
mov dword [ebp - 0x428], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42559e
jmp 0x425190
mov eax, ebx
mov edi, SysReAllocString
lea edx, [ebp - 0x21c]
mov esi, 0x208
xor ebx, ebx
test esi, esi
je 0x4251c2
test edi, edi
je 0x4251c5
movzx ecx, word [edx]
test cx, cx
je 0x4251c5
mov word [eax], cx
add eax, 2
add edx, 2
dec esi
dec edi
inc ebx
jmp 0x4251a4
sub eax, 2
mov edx, dword [ebp - 0x424]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x430]
push edx
push eax
call fcn.00425080
add esp, 8
test eax, eax
je 0x42558c
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp - 0x420]
push 0
push 0
push 0
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push ecx
mov dword [ebp - 0x428], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [ebp - 0x42c]
test eax, eax
je 0x425190
jmp 0x425592
mov ebx, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x430]
mov esi, dword [ebp - 0x424]
xor eax, eax
mov word [ebx - 2], ax
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x425102
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044dcfc
mov esp, ebp
pop ebp
ret
Function at 0x429260
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push str.Caption
push 0x4739f5
push str.SELECT__FROM_Win32_OperatingSystem
push str.ROOTcimv2
push esi
mov dword [ebp - 4], 0
call fcn.00428480
add esp, 0x14
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4292a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f642
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x490120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x1fc
lea ecx, [ebp - 0x212]
mov dword [ebp - 0x418], ebx
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], ebx
mov word [ebp - 0x214], ax
call fcn.0044d850
add esp, 0xc
push 0x1fe
lea edx, [ebp - 0x214]
push edx
push 0x59
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call fcn.0042a6d4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x429336
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429355
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x41c]
call fcn.004031a0
mov esi, dword [ebp - 0x41c]
add esi, 0xfffffff0
push esi
call fcn.00401dd0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4293aa
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
jmp 0x4294a7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044dcfc
mov esp, ebp
pop ebp
ret

Function at 0x436029
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x436070
call fcn.00441dc1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x436070
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43608c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00435ba1
mov esi, eax
test edi, edi
je 0x43608a
test ebx, ebx
je 0x43608a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x436833
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x470603
call fcn.004504cf
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x436858
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43689e
lea ecx, [ebp - 0x10]
call fcn.00402860
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a378
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401180
mov eax, esi
call fcn.004505a7
ret 8

Function at 0x4370ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x437132
call fcn.00441dc1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x437132
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x437175
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43715e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43715e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x437172
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x440015
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x440039
cmp dword [edi + 0x54], 0
jne 0x440039
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00441dc1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043ffd6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x444b07
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x444b32
call fcn.00441dc1
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x444b55
push eax
push dword [esi + 4]
call fcn.00444a8d
push esi
push eax
mov ecx, 0x493568
call fcn.00444714
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x445353
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x47097b
call fcn.004504cf
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00445313
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402860
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4453b9
push eax
push dword [esi + 8]
call fcn.00444a8d
push dword [esi + 0xc]
mov ecx, 0x493568
push eax
call fcn.00444714
mov eax, esi
call fcn.004505a7
ret 0x18

Function at 0x44dcfc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x490120]
jne 0x44dd06
repz ret
jmp fcn.0045884c
Function at 0x4609e1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00454623
and dword [ebp - 4], 0
cmp dword [0x4943b8], 0
mov ebx, eax
jne 0x460a92
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x460b43
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x460b43
push eax
call fcn.004545b1
mov dword [esp], 0x47b5d4
push edi
mov dword [0x4943b8], eax
call esi
push eax
call fcn.004545b1
mov dword [esp], 0x47b5c0
push edi
mov dword [0x4943bc], eax
call esi
push eax
call fcn.004545b1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4943c0], eax
call esi
push eax
call fcn.004545b1
pop ecx
mov dword [0x4943c8], eax
test eax, eax
je 0x460a92
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004545b1
pop ecx
mov dword [0x4943c4], eax
mov eax, dword [0x4943c4]
cmp eax, ebx
je 0x460aea
cmp dword [0x4943c8], ebx
je 0x460aea
push eax
call fcn.0045462c
push dword [0x4943c8]
mov esi, eax
call fcn.0045462c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x460aea
test edi, edi
je 0x460aea
call esi
test eax, eax
je 0x460ae1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460ae1
test byte [ebp - 0xc], 1
jne 0x460aea
or dword [ebp + 0x10], 0x200000
jmp 0x460b23
mov eax, dword [0x4943bc]
cmp eax, ebx
je 0x460b23
push eax
call fcn.0045462c
pop ecx
test eax, eax
je 0x460b23
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x460b23
mov eax, dword [0x4943c0]
cmp eax, ebx
je 0x460b23
push eax
call fcn.0045462c
pop ecx
test eax, eax
je 0x460b23
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4943b8]
call fcn.0045462c
pop ecx
test eax, eax
je 0x460b43
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460b45
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x798219a6
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x47f46d76
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4031d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403201
mov ecx, dword [0x42a2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004032de
cmp eax, esi
jl 0x4032d8
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405f61
test eax, eax
je 0x4032c8
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.004032de
mov ebx, eax
cmp ebx, esi
jl 0x4032d6
cmp dword [ebp + 0x10], esi
jne 0x4032a4
cmp dword [ebp + 8], esi
jle 0x4032d6
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403266
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405f61
test eax, eax
je 0x4032c8
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405f90
test eax, eax
je 0x4032a0
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403255
jmp 0x4032d6
push 0xfffffffffffffffe
jmp 0x4032ca
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4032af
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032cd
push 0xfffffffffffffffd
pop eax
jmp 0x4032d8
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x4034c8
Capabilities:
Encode data using xor

Disassembly:
imul ebx, ecx, 0x5ec74519
mov ch, dl
dec bl
ja 0x4034b8
sbb eax, 0x4a96ed15
xchg ebp, eax
jbe 0x4034bc
bswap ebx
call 0x4034c8
or eax, 0xeaa27661
add edi, esi
mov dh, cl
lea edi, [0xe6eb67b4]
imul ebx, ebp, 0x49816747
cmp ebp, 0xc721
jb 0x4034e4
test edx, 0x7a9ab697
dec ebp
mov ecx, 0xffff169c
test esi, edi
xor ecx, 0xef50
mov ah, 0x93
add ecx, 0x634
mov al, 0x56
movzx eax, al
imul edi, edi
add eax, 0x5b6849cf
mov edx, 0xa542
imul ebx, esi
xor edx, 0xa866
sbb eax, ebx
xor edx, 0xd25
imul ebp, edi
add ecx, edx
inc ebp
dec ah
cmp al, 0x33
imul ebp, edi, 0x3cde4c23
cmp ecx, 0x32
jb 0x4034fa
pop eax
mov ch, dh
mov edx, ecx
cmp ebx, 0x15af
jne 0x40354e
lea ebp, [0xe674f1c4]
or ch, bh
add dl, ch
test ebx, esi
sub edi, 0xdc76
test edi, edx
add edi, 0x31e
movd mm2, eax
mov bh, ah
mov ebx, esi
sub edx, eax
jmp 0x403574
movd edx, mm2
test eax, 0xc1ff3698
dec esi
mov bl, 0x53
add edx, 0x7483b
mov ecx, eax
jo 0x403592
inc edi
bswap ebp
mov cl, bh
inc esi
dec ch
lea eax, [0x9a8058dc]
mov ah, dl
mov ebp, ebp
lea edi, [0x18ac9c26]
lea esi, [ebp]
and edi, ebp
jae 0x4035b6
lea ebp, [0x362cf487]
test cl, 0x37
sbb cl, bh
add ebx, esi
inc eax
xor ecx, 0xd825f5a3
cmp esi, esi
cmp ah, 0xd6
mov ebx, esi
push edx
jno 0x4035d4
mov ecx, 0x9b6aa9f7
movsx edi, di
mov al, ch
lea eax, [0xf0c96938]
lea ecx, [0xf83a435d]
xchg ch, ch
mov edi, 0x660c
inc cl
sub edi, 0x1516
lea ebx, [edi]
test eax, edi
sub ebx, 0xdba
mov bh, 0x9e
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
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
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405890
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0xf7a44bb2]
xchg esp, eax
scasb al, byte es:[edi]
scasd eax, dword es:[edi]
xor dword [edi - 0x235d38b8], edx
jne 0x4058c3
mov eax, 0x82a5baf3
wait
invalid

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret