joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x4ca608
lea eax, [ebp - 0x268]
call fcn.0040fd90
xor eax, eax
push fcn.00423540
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4235a3
mov eax, 0x4d9a70
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x4235eb
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x4235bf
clc
jmp 0x4235c6
bt dword [0x4c9c50], eax
jb 0x4235df
mov eax, ebp
call fcn.00423690
test al, al
je 0x4235df
mov byte [ebp - 0x26c], 1
jmp 0x423670
mov byte [ebp - 0x26c], 0
jmp 0x423670
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x450890]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x423670
and esi, 0x400
je 0x423670
lea ebx, [ebp - 0x268]
mov edx, 0x4ca608
mov eax, ebx
call fcn.0040fe50
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00423200
test eax, eax
je 0x423644
sub eax, 1
je 0x42365c
jmp 0x423668
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00423560
mov byte [ebp - 0x26c], al
jmp 0x423670
mov byte [ebp - 0x26c], 1
jmp 0x423670
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00423540
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4238c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x4238ce
mov eax, 0x4d9a70
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x4238dc
xor ebx, ebx
jmp 0x4238e3
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423910
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x423928
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x42393f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x4dafb0], 0
je 0x42397b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x4dafb0]
test eax, eax
je 0x42396d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x24]
jmp 0x4239c6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x4239c6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4239ba
mov eax, dword [ebp - 8]
mul dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x4239c6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4239e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x4239f8
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x423a0f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x4dafb0], 0
je 0x423a4b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x4dafb0]
test eax, eax
je 0x423a3d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x423a96
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x423a96
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x423a8a
mov eax, dword [ebp - 8]
mul dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x423a96
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423ae0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.00423ad0
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x423b50
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040cfb0
cmp ebx, 1
jle 0x423b40
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040c880
jmp 0x423b5b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040a6b0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00423ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x423f60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00423f50
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x4daf4c]
xor edx, edx
call fcn.0040a6b0
mov dword [ebx*4 + 0x4daf6c], 0xffffffff
cmp ebx, 7
jl 0x423f88
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x424014
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.0040b0a0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0041a500
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x424014
push 4
push ebx
push esi
mov eax, 0x423e30
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x423ec0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00423f50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424660
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00424630
push ebp
push 0x415530
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.0041a0d0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040a6b0
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040bc40
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.0040a6b0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x42476c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.0040b000
mov eax, dword [ebp - 8]
test eax, eax
je 0x4246f7
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040bc40
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.0040b5e0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.0040b480
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0041a0d0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040b220
test eax, eax
jne 0x424764
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x424753
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040b480
jmp 0x424775
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x4246e0
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00424630
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4247c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x4dafb0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x4dae10], eax
mov eax, dword [ebp - 0x90]
mov dword [0x4dae20], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x4dae30], eax
mov eax, dword [ebp - 0x88]
mov dword [0x4dae40], eax
mov edx, 0x4dae51
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00405730
lea eax, [ebp - 0x80]
call fcn.00406630
mov byte [0x4dae50], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4dafc0], eax
test eax, eax
je 0x424860
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x4dafc0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x4dafb0], eax
nop
cmp dword [0x4dae20], 6
jae 0x424874
mov dword [0x450150], 0
nop
cmp dword [0x4dae20], 6
jb 0x424890
cmp dword [0x4dae30], 1
jb 0x424890
mov dword [0x450160], 2
mov esp, ebp
pop ebp
ret
Function at 0x426630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00426620
push ebp
push 0x415530
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x426740
mov al, byte [ebp - 0x110]
test al, al
je 0x426709
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00406be0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.0040af30
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040bc40
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cad10
call fcn.004222a0
mov edx, 0x42669a
mov ecx, ebp
call fcn.004153f0
jmp 0x426740
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cad10
call fcn.004222a0
mov edx, 0x426709
mov ecx, ebp
call fcn.004153f0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x426804
mov al, byte [ebp - 0x110]
test al, al
je 0x4267cd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00406be0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.0040af30
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040bc40
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cad10
call fcn.004222a0
mov edx, 0x42675e
mov ecx, ebp
call fcn.004153f0
jmp 0x426804
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cad10
call fcn.004222a0
mov edx, 0x4267cd
mov ecx, ebp
call fcn.004153f0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00425d20
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426620
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437cd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x437d7a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x437d96
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x437d96
sub dx, 0x20
je 0x437d70
sub dx, 0x80
je 0x437d70
sub dx, 0x1f62
jb 0x437d96
sub dx, 1
jbe 0x437d70
sub dx, 6
je 0x437d70
sub dx, 0x26
jne 0x437d96
nop
jmp 0x437d70
cmp eax, dword [ebp - 0x20]
jg 0x437d18
lea esi, [esi]
jmp 0x437d96
cmp dword [ebp - 0x1c], 2
jne 0x437d8a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x437d96
mov al, byte [ebp - 0xc]
call fcn.0040cce0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x437e14
sub ax, 0x21
je 0x437e28
sub ax, 0x17
je 0x437e34
sub ax, 0x222
je 0x437e40
sub ax, 0x392
je 0x437e48
sub ax, 1
je 0x437e50
sub ax, 0x1996
je 0x437e58
sub ax, 1
je 0x437e60
sub ax, 6
je 0x437e68
sub ax, 0xb
je 0x437e78
sub ax, 0x1b
je 0x437e70
sub ax, 0x367
je 0x437e80
jmp 0x437e88
mov ax, word [ebp - 0x24]
call fcn.0040cd50
mov byte [ebp - 0x10], al
jmp 0x437e90
mov byte [ebp - 0x10], 0x20
jmp 0x437e90
mov byte [ebp - 0x10], 0x2e
jmp 0x437e90
mov byte [ebp - 0x10], 0x27
jmp 0x437e90
mov byte [ebp - 0x10], 0x2c
jmp 0x437e90
mov byte [ebp - 0x10], 0x27
jmp 0x437e90
mov byte [ebp - 0x10], 0x20
jmp 0x437e90
mov byte [ebp - 0x10], 0x20
jmp 0x437e90
mov byte [ebp - 0x10], 0x20
jmp 0x437e90
mov byte [ebp - 0x10], 0x20
jmp 0x437e90
mov byte [ebp - 0x10], 0x2d
jmp 0x437e90
mov byte [ebp - 0x10], 0x27
jmp 0x437e90
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x44d5f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566f1b
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46260c], eax
sub eax, eax
je 0x406ffc
call 0xa97b5802
invalid
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468063

Function at 0x433004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402b3c
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.00404880
test esi, esi
jne 0x402b72
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.00404970
jmp 0x402b90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a50
mov edi, eax
test esi, esi
je 0x402b90
cmp dword [ebx], 0
je 0x402b90
dec esi
jmp 0x402b79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403800
Capabilities:
Query or enumerate registry value

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

Function at 0x404660
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fd04c], 0
je 0x4046c1
cmp word [0x4fd220], 0xd7b2
jne 0x404689
cmp dword [0x4fd228], 0
jbe 0x404689
mov eax, 0x4fd21c
call dword [0x4fd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f8054
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 0x4046e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f801c], 0
jne 0x4046dd
push 0
push 0x4f8074
push 0x4f8054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404834
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402808
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4fd04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40cc94
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 0x40cccd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404970
jmp 0x40ccd6
mov eax, ebx
mov edx, esi
call fcn.004048d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cce0
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 0x40cd01
mov al, byte [esp]
jmp 0x40cd03
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d388
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d200
mov eax, dword [0x4fc4b4]
cmp byte [eax], 0
je 0x40d3f5
mov eax, dword [0x4fc000]
call fcn.00402fb4
call fcn.00402970
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409a84
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d43c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d42b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4fbf50]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fd718]
call fcn.00406378
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e300
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 0x40e364
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404ae8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004095d0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e36b
lea eax, [ebp - 0xc]
call fcn.00404880
ret

Function at 0x426140
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00425fc4
dec esi
jne 0x426162
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret