joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, ecx
mov edx, ebx
push edi
mov dword [ebp - 8], esi
lea ecx, [esi + 4]
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x415ade
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, ecx
push 0x85
call edi
mov ecx, ebx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x415ac8
mov esi, dword [ebp - 8]
cmp dword [esi + 8], 0
je 0x415aeb
mov ecx, esi
call fcn.00415a30
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x415b77
lea edi, [esi + 0x2c]
mov dword [esi + 8], ecx
push edi
push 0x415940
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x415b12
mov dword [edi], eax
jmp 0x415b58
cmp dword [edi], 0
je 0x415b58
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x415b58
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x415b58
lea eax, [esi + 0x28]
push eax
push 0
push esi
push 0x415940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x415b77
mov ecx, esi
call fcn.00415a30
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x415b77
xor eax, eax
lea ecx, [esi + 4]
xchg dword [ecx], eax
mov ecx, dword [esi + 0x24]
xor edx, edx
mov eax, 0xfffffffd
pop edi
test ecx, ecx
pop esi
cmovne eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4164c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0xffff
mov edx, dword [edi]
test edx, edx
je 0x4164ea
mov dword [edi], 0
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx]
test ecx, ecx
je 0x4164ff
mov dword [ebx], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [ebp + 0xc], 0x5f5e0ff
jbe 0x41650f
mov esi, 0x80070057
jmp 0x416587
push 0
push 0
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.00419a70
mov esi, eax
test esi, esi
js 0x416587
cmp dword [edi], 0
je 0x416587
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00415f90
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
js 0x41658a
cmp eax, 3
je 0x41654b
test eax, eax
jne 0x41658a
mov edi, 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
call fcn.0041a1a0
mov esi, eax
test esi, esi
js 0x416587
cmp dword [ebx], 0
jne 0x416587
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x2710
sbb eax, eax
and edi, eax
dec edi
test edi, edi
jg 0x416550
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x416593
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x417460
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], eax
nop word [eax + eax]
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x481a14]
push 0
push 7
push esi
push dword [eax + 0x44]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
test esi, esi
jne 0x4174ee
mov ecx, dword [ebp - 0xc]
push 0x100
push dword [ebp - 0x10]
add ecx, 8
push ecx
call fcn.00431a4c
add esp, 0xc
test eax, eax
jne 0x4174f6
mov eax, dword [ebp - 0xc]
cmp dword [eax], 1
je 0x417514
jmp 0x4174f6
cmp esi, 0x139f
jne 0x417511
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jae 0x41750c
push 0x14d
call ebx
mov esi, dword [ebp - 0x18]
jmp 0x4174a0
mov esi, 0x5b4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x417523
push eax
mov eax, dword [0x481a14]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422009
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418050
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
push 0x1c
push 1
mov dword [esi], vtable.IPAddrAssigner.0
mov byte [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0043153d
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x418105
push 0x4722b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
test eax, eax
je 0x418105
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetIpNetTable
push eax
call edi
mov ecx, dword [esi + 8]
mov dword [ecx + 4], eax
test eax, eax
je 0x418105
mov eax, dword [esi + 8]
push str.GetAdaptersAddresses
push dword [eax]
call edi
mov ecx, dword [esi + 8]
mov dword [ecx + 8], eax
test eax, eax
je 0x418105
mov eax, dword [esi + 8]
push str.GetAdaptersInfo
push dword [eax]
call edi
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
test eax, eax
je 0x418105
mov eax, dword [esi + 8]
push str.AddIPAddress
push dword [eax]
call edi
mov ecx, dword [esi + 8]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x418105
mov eax, dword [esi + 8]
push str.DeleteIPAddress
push dword [eax]
call edi
mov ecx, dword [esi + 8]
mov dword [ecx + 0x18], eax
test eax, eax
jne 0x41812c
mov eax, dword [esi + 8]
test eax, eax
je 0x41812c
mov ecx, dword [eax]
test ecx, ecx
je 0x41811c
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 8]
push eax
call fcn.00430bb8
add esp, 4
mov dword [esi + 8], 0
pop edi
mov eax, esi
pop esi
ret
Function at 0x41c5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x47b014]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41c7f0
cmp dword [edi + 0x247], 0
je 0x41c61b
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00422009
mov esp, ebp
pop ebp
ret
mov eax, dword [0x481a50]
push edi
push 0x41f840
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [edi + 4]
push 0
mov dword [edi + 0x13c], eax
mov eax, dword [0x481a50]
push 0
push 0x3c
push 1
mov eax, dword [eax + 0x2c]
call eax
mov dword [edi + 0x13c], eax
call fcn.004215a0
mov esi, dword [0x481a50]
test eax, eax
jne 0x41c77c
cmp dword [esi + 0x164], 0xffffffff
jne 0x41c77c
cmp dword [esi + 0x16c], eax
jne 0x41c77c
cmp dword [esi + 0x850], 0xffffffff
mov dword [esi + 0x17c], eax
jne 0x41c6bd
push eax
push eax
push 3
push eax
push 2
push 0x40000000
push 0x472cd4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x481a50]
mov dword [ecx + 0x850], eax
mov ecx, eax
call fcn.0041e8b0
mov esi, dword [0x481a50]
mov dword [esi + 0x854], eax
push 0x2c
lea eax, [esi + 0x18c]
mov dword [esi + 0x184], 0
push 0
push eax
mov dword [esi + 0x188], 0
call fcn.00423950
add esp, 0xc
lea eax, [esp + 8]
cmp dword [esi + 0x854], 0x30002
push 0
push eax
push 0x10d
lea eax, [esp + 0x1c]
push eax
sbb eax, eax
push 0
and eax, 0xec2a0000
push 0
add eax, 0x2a0840
push eax
push dword [esi + 0x850]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [0x481a50]
test eax, eax
je 0x41c767
mov dword [esi + 0x180], 0
mov eax, dword [esp + 0x12]
cmp eax, 0x30
ja 0x41c77c
mov dword [esi + 0x164], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x41e4f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x481a50]
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x41c77c
cmp dword [esi + 0x178], 1
jb 0x41c77c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x481a50]
or dword [esi + 0x160], 0x6000006
mov dword [esi + 0x15c], 0x41f7b0
call fcn.0041e960
mov eax, dword [0x481a50]
cmp dword [eax + 8], 0
je 0x41c7cb
cmp dword [eax + 0x16c], 0
jne 0x41c7c2
call fcn.0041ea20
test eax, eax
mov eax, dword [0x481a50]
jne 0x41c7c2
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x41c7cb
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
cmp dword [edi + 0x13c], eax
sete al
mov dword [edi + 0x247], eax
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00422009
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00422009
mov esp, ebp
pop ebp
ret
Function at 0x41d350
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x47b014]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0xc], ecx
movzx eax, byte [esi]
cdq
mov edi, eax
mov ebx, edx
movzx eax, byte [esi + 1]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esi + 2]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esi + 3]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esi + 4]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [esi + 5]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41d490
cmp word [esp + 0x10], 0
lea eax, [esp + 0x10]
mov ecx, 0x104
je 0x41d40e
test ecx, ecx
je 0x41d42f
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x41d3f7
test ecx, ecx
je 0x41d42f
cmp ecx, 1
jbe 0x41d42a
mov esi, str.Scanmatik
sub esi, eax
movzx edx, word [esi + eax]
test dx, dx
je 0x41d42a
mov word [eax], dx
dec ecx
add eax, 2
cmp ecx, 1
ja 0x41d415
xor ecx, ecx
mov word [eax], cx
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d44d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d490
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push ebx
push edi
push 0x472c6c
push eax
push str._s_s_016llX
push 0x104
push esi
call fcn.004019b0
add esp, 0x1c
xor eax, eax
mov word [esi + 0x208], ax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00422009
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x23c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00422009
mov esp, ebp
pop ebp
ret

Function at 0x41d4b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41d519
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 0
push eax
push 4
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41c], 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov edx, edi
lea ecx, [ebp - 0x418]
call fcn.0041d350
test al, al
je 0x41d537
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422009
mov esp, ebp
pop ebp
ret
Function at 0x41d700
Capabilities:
Check for time delay via gettickcount
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x428], eax
push edi
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x42c], esi
xor bl, bl
lea edi, [esi + 0x64]
call fcn.0041d350
test al, al
je 0x41d7d8
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x41d78a
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x41d77f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41d82c
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 0
push eax
push 2
lea eax, [ebp - 0x424]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d82c
cmp dword [ebp - 0x420], 2
jne 0x41d82c
mov ecx, dword [ebp - 0x424]
test cx, cx
je 0x41d7d8
call fcn.0041f1e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x420], eax
nop word [eax + eax]
push ecx
push dword [ebp - 0x428]
push ecx
mov ecx, esi
call fcn.0041de00
mov esi, eax
test esi, esi
je 0x41d868
cmp esi, 2
je 0x41d864
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x420]
cmp eax, 0xbb8
jae 0x41d842
push 0x12c
call ebx
mov esi, dword [ebp - 0x42c]
jmp 0x41d7f0
mov edx, dword [ebp - 0x428]
mov ecx, edi
call fcn.0041d4b0
test bl, bl
je 0x41d7d8
mov esi, 2
mov eax, dword [ebp - 0x42c]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422009
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
jne 0x41d842
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x41c]
mov ebx, dword [ebp - 0x428]
mov edx, ebx
mov dword [eax + 0x68], 2
movzx eax, word [eax + 0x11]
mov dword [ebp - 0x420], eax
call fcn.0041d350
test al, al
je 0x41d84f
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x41d8cd
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x41d8cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41d84f
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x424]
push eax
push 2
lea eax, [ebp - 0x420]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d90e
cmp dword [ebp - 0x424], 2
jne 0x41d90e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x41d84f
mov edx, ebx
mov ecx, edi
call fcn.0041d4b0
jmp 0x41d84f
Function at 0x435630
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442384
push 0x44237c
push str.FlsAlloc
push 0x1e
call fcn.0043556d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435664
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f3fc]
call esi
jmp 0x43566a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4356ae
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442394
push 0x44238c
push str.FlsGetValue
push 0x20
call fcn.0043556d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4356e5
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f3fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x436c75
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x436cc0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00436e14
test al, al
jne 0x436cba
sub edx, 2
cmp edx, edi
jne 0x436ca0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x436ce2
lea eax, [edi + 2]
cmp edx, eax
je 0x436ce2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00436bc1
add esp, 0x10
jmp 0x436ddc
push esi
lea ecx, [ebp - 0x255]
call fcn.00436e14
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x436d25
push dword [ebp - 0x25c]
jmp 0x436cd2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x436d62
cmp word [ebp - 0x226], 0
je 0x436d83
cmp word [ebp - 0x226], ax
jne 0x436d62
cmp word [ebp - 0x224], 0
je 0x436d83
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00436bc1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x436dcf
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x436d3c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x436db7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x436ddc
push 0x4369f1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043ad90
add esp, 0x10
jmp 0x436dac
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422009
leave
ret
Function at 0x402c00
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403058
Capabilities:
Query or enumerate registry value

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

Function at 0x403db4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e048], 0
je 0x403e15
cmp word [0x48e21c], 0xd7b2
jne 0x403ddd
cmp dword [0x48e224], 0
jbe 0x403ddd
mov eax, 0x48e218
call dword [0x48e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48c070
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 0x403e3c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c034], 0
jne 0x403e31
push 0
push 0x48c068
push 0x48c070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40523c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40546c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40546c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405488
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405348
xor eax, eax
push ebp
push 0x405341
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405084
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405326
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054a8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405326
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405348
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405462
cmp byte [ebp - 0xd], 0
jne 0x40538f
cmp byte [ebp - 0x12], 0
je 0x405462
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053a8
dec ebx
cmp byte [ebx], 0x2e
je 0x4053b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405462
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053f4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405462
cmp byte [ebp - 0xd], 0
je 0x405462
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405462
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret