joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417abc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004418ec
xor eax, eax
push ebp
push 0x417c92
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x417ca8
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00418954
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.004181e4
xor eax, eax
push ebp
push 0x417c6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x420fb8]
call fcn.00425798
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x417c05
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x417bdf
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
jle 0x417ba3
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004254ec
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x417b9b
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100c4]
call dword [esi + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.004181e4
cmp ebx, 0xffffffff
jne 0x417bcf
call sub.WSOCK32.DLL_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], esi
cmp esi, 0x2749
je 0x417bef
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00418888
test ebx, ebx
je 0x417bef
mov eax, dword [0x49f840]
mov eax, dword [eax]
call fcn.00461c8c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x417b3f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417c0c
mov eax, dword [ebp - 0xc]
call fcn.00440918
ret
Function at 0x417cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417ea5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x417ebc
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00418954
mov eax, esi
call fcn.0044144c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.004181e4
xor eax, eax
push ebp
push 0x417e88
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x417e01
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
je 0x417e27
cmp ebx, 1
jle 0x417dcb
mov eax, dword [esi]
call fcn.00441704
mov edi, eax
lea edx, [edi + ebx]
mov eax, esi
call fcn.00441a88
mov eax, esi
call fcn.00441954
inc edi
dec edi
test eax, eax
je 0x417d82
cmp edi, dword [eax - 4]
jb 0x417d87
call fcn.00440858
inc edi
lea edx, [eax + edi - 1]
mov eax, dword [ebp - 4]
add eax, 0x30
mov ecx, ebx
call fcn.0043fbcc
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x417dc1
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100c4]
call dword [ebx + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.004181e4
jmp 0x417df5
inc ebx
jne 0x417df5
call sub.WSOCK32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], ebx
cmp ebx, 0x2749
je 0x417e27
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00418888
mov eax, dword [0x49f840]
mov eax, dword [eax]
call fcn.00461c8c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x417e27
cmp dword [ebp - 8], 0xffffffff
je 0x417d30
mov eax, dword [esi]
call fcn.00441704
cmp eax, dword [ebp - 8]
jl 0x417d30
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x417e72
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x417ed4
mov dl, 1
mov eax, dword [0x416730]
call fcn.00432378
call fcn.004410ac
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x417e72
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417e8f
mov eax, dword [ebp - 4]
call fcn.0041823c
ret
Function at 0x418790
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x41885c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x418870
mov dl, 4
mov eax, ebx
call fcn.00418954
mov byte [ebx + 0x10298], 0
mov si, word [ebx + 0x10290]
cmp si, 0xffff
je 0x418846
movzx eax, si
push eax
call sub.WSOCK32.DLL_closesocket
test eax, eax
jne 0x418838
test byte [ebx + 0x1c], 8
jne 0x4187f5
cmp word [ebx + 0x10052], 0
je 0x4187f5
mov edx, ebx
mov eax, dword [ebx + 0x10054]
call dword [ebx + 0x10050]
cmp byte [ebx + 0x10091], 0
jne 0x418846
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x418818
call fcn.00440858
mov word [ebx + 0x10290], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10294]
push eax
movzx eax, si
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect
jmp 0x418846
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.00418888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418863
lea eax, [ebp - 4]
call fcn.0044144c
ret

Function at 0x4189fc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x418a38
mov dl, 8
mov eax, ebx
call fcn.00418954
push 2
push 1
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
test eax, eax
jle 0x418a2a
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x418a48
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x418a4f
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x418a9c
mov dl, 8
mov eax, ebx
call fcn.00418954
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
add esp, 0x10004
pop ebx
ret
Function at 0x418aac
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x418c3c
mov dl, 8
mov eax, ebx
call fcn.00418954
cmp dword [ebx + 0x100a4], 0
jne 0x418ae2
lea eax, [ebx + 0x30]
mov edx, dword [ebx + 0x10274]
call fcn.0042f414
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10268], eax
jmp 0x418afc
lea eax, [ebx + 0x30]
mov edx, dword [ebx + 0x100a4]
call fcn.0042f414
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10268], eax
cmp dword [ebx + 0x10268], 0xffffffff
jne 0x418c32
xor eax, eax
mov dword [ebx + 0x10268], eax
mov eax, ebx
call fcn.004181e4
mov byte [ebx + 0x100d0], 0
push 0x400
mov eax, dword [ebx + 0x10278]
push eax
lea eax, [ebx + 0x30]
push eax
push 0x466
mov eax, dword [ebx + 0x10294]
push eax
call sub.WSOCK32.DLL_WSAAsyncGetHostByName
push 2
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x49f840]
mov eax, dword [eax]
call fcn.00461c8c
cmp byte [ebx + 0x100d0], 0
jne 0x418b6e
cmp byte [ebx + 0x100b1], 0
jne 0x418b6e
cmp byte [ebx + 0x10090], 0
je 0x418b40
mov eax, ebx
call fcn.0041823c
cmp byte [ebx + 0x100b1], 0
je 0x418b94
mov ecx, 0x418c54
mov dl, 1
mov eax, dword [0x4166d8]
call fcn.00432378
call fcn.004410ac
cmp byte [ebx + 0x10090], 0
je 0x418bb3
mov ecx, 0x418c74
mov dl, 1
mov eax, dword [0x4166d8]
call fcn.00432378
call fcn.004410ac
cmp byte [ebx + 0x100b0], 0
jne 0x418bd2
mov ecx, 0x418c94
mov dl, 1
mov eax, dword [0x4166d8]
call fcn.00432378
call fcn.004410ac
lea eax, [ebx + 0x10268]
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx]
mov byte [eax], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 2]
mov byte [eax + 2], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 3]
mov byte [eax + 3], dl
cmp word [ebx + 0x1006a], 0
je 0x418c32
mov edx, ebx
mov eax, dword [ebx + 0x1006c]
call dword [ebx + 0x10068]
pop ebx
ret

Function at 0x42bc6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49fb24
cmp dword [edi], 0
jne 0x42bce8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x49fb20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b130
mov ecx, 2
call fcn.0043fbcc
mov edx, 0x42bc44
lea eax, [esi + 5]
call fcn.0042bc64
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042bc64
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42bcbd
mov dword [0x49fb20], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42d128
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42d291
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004414e4
mov eax, dword [ebp - 0x10]
call fcn.0042cddc
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42d17a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0044199c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042d49c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42d24f
xor eax, eax
push ebp
push 0x42d248
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042cf24
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042d2a0
test al, al
je 0x42d226
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0044153c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42d226
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004418fc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x42d220
mov eax, dword [ebp - 0x14]
call fcn.004418fc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0044163c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042d128
dec ebx
cmp ebx, 0xffffffff
jne 0x42d1d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d24f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042cf24
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.004418fc
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042cf10
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d298
lea eax, [ebp - 0x3c]
call fcn.0044144c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00441470
ret
Function at 0x42d24f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42d291
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004414e4
mov eax, dword [ebp - 0x10]
call fcn.0042cddc
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42d17a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0044199c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042d49c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42d24f
xor eax, eax
push ebp
push 0x42d248
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042cf24
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042d2a0
test al, al
je 0x42d226
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0044153c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42d226
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004418fc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x42d220
mov eax, dword [ebp - 0x14]
call fcn.004418fc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0044163c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042d128
dec ebx
cmp ebx, 0xffffffff
jne 0x42d1d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d24f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042cf24
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.004418fc
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042cf10
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d298
lea eax, [ebp - 0x3c]
call fcn.0044144c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00441470
ret

Function at 0x42d2a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00440210
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x49f688]
cmp byte [edx + 0xc], 0
je 0x42d304
mov edx, dword [0x49f67c]
cmp dword [edx], 2
jne 0x42d304
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x42d308
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x42d3c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0042d2a0
test al, al
je 0x42d3a2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.0044153c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x42d3a2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004418fc
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.004418fc
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0044163c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x42d35b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d3c7
lea eax, [ebp - 0x2c]
call fcn.0044144c
lea eax, [ebp - 0xc]
call fcn.0044144c
ret

Function at 0x42d410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042cdf0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004418fc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x42d46e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49f660]
mov dl, 1
mov eax, dword [0x42cd14]
call fcn.00432470
call fcn.004410ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004418fc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42f0f5
test al, 0x10
jne 0x42f0f9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x431bcc
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x431c05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044153c
jmp 0x431c0e
mov eax, ebx
mov edx, esi
call fcn.004414a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x431c18
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
test eax, eax
jle 0x431c39
mov al, byte [esp]
jmp 0x431c3b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4322c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x432138
mov eax, dword [0x49f830]
cmp byte [eax], 0
je 0x43232d
mov eax, dword [0x49f834]
call fcn.00440090
call fcn.0043fa88
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0042f37c
push eax
lea eax, [esp + 0x50]
push eax
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 0x432374
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x432363
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49f6ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49f9d4]
call fcn.00442b68
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x433004
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x433068
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004416b4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0042ed38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43306f
lea eax, [ebp - 0xc]
call fcn.0044144c
ret

Function at 0x43fb34
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 0x43fb71
xor eax, eax
mov al, 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 0x43fb91
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004416b4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x43fcf8
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.0044144c
test esi, esi
jne 0x43fd2e
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.0044153c
jmp 0x43fd4c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0043fc0c
mov edi, eax
test esi, esi
je 0x43fd4c
cmp dword [ebx], 0
je 0x43fd4c
dec esi
jmp 0x43fd35
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49b66c], 0x8088405
inc edx
mov dword [ebx + 0x49b66c], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x440788
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49b674]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x440820
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x440800
xor eax, eax
push ebp
push 0x4407f9
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 0x44083c
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 0x440800
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x49b674]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49b674], ax
mov esp, ebp
pop ebp
ret

Function at 0x4412d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49fea0], 0
je 0x441331
cmp word [0x4a0074], 0xd7b2
jne 0x4412f9
cmp dword [0x4a007c], 0
jbe 0x4412f9
mov eax, 0x4a0070
call dword [0x4a008c]
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 0x441358
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x49b684], 0
jne 0x44134d
push 0
push 0x49b6dc
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret