joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adf40
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406d68
mov esi, eax
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406d68
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406da0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406da0
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
push 0
push 0
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406b00
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4adfd8
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406d68
mov edi, eax
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406d68
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406da0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406da0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push edi
push 0
push 0
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406b00
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406d90
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp + 8]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406d08
push 0x8000
push 0
push edi
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406d70
push 0x8000
push 0
push esi
mov eax, dword [ebx + 0x48]
push eax
call fcn.00406d70
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406ad0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ae22c
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
mov eax, dword [0x4bce18]
push eax
call fcn.00406b28
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406d68
mov esi, eax
push 0x40
push 0x1000
lea eax, [edi + 4]
push eax
push 0
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406d68
mov ebx, eax
lea eax, [esp + 4]
push eax
push 0x1000
push ebp
push esi
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406da0
lea eax, [esp + 4]
push eax
push edi
mov eax, dword [esp + 8]
push eax
push ebx
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406da0
lea eax, [esp + 4]
push eax
push 0
push ebx
push esi
push 0
push 0
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406b00
mov ebp, eax
push 0xffffffffffffffff
push ebp
call fcn.00406d90
lea eax, [esp + 4]
push eax
push 4
lea eax, [esp + 0x10]
push eax
mov eax, ebx
cdq
push edx
push eax
mov eax, edi
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406d08
mov edi, dword [esp + 8]
push 0x8000
push 0
push esi
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406d70
push 0x8000
push 0
push ebx
mov eax, dword [0x4bc7f8]
mov eax, dword [eax]
push eax
call fcn.00406d70
push ebp
call fcn.00406ad0
mov eax, dword [0x4bce18]
push eax
call fcn.00406cc8
mov eax, edi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov ebp, eax
mov esi, dword [0x4bcb84]
mov edi, dword [0x4bc7f8]
mov dword [esp], 1
mov dword [esp + 4], ebp
mov eax, dword [edi]
push eax
call fcn.004b26fc
cmp ebp, 9
jne 0x4ae3f8
mov eax, dword [esi + 0x78]
call fcn.004b0f9c
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
mov eax, dword [esi + 0x80]
call fcn.004b0fcc
mov edx, esp
mov eax, dword [esi + 0xa8]
mov ecx, 8
call fcn.004b1104
mov eax, dword [edi]
push eax
call fcn.004b2704
call fcn.00406c48
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00406c48
xor edx, edx
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x14]
cmp edx, 0
jne 0x4ae43e
cmp eax, 0x3e8
jbe 0x4ae440
jmp 0x4ae46a
jg 0x4ae46a
lea eax, [esp + 8]
push eax
push 8
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0xa8]
push eax
mov eax, dword [edi]
push eax
call fcn.00406d08
cmp dword [esp], 0
je 0x4ae46a
push 0x14
call fcn.00406d58
jmp 0x4ae421
mov eax, ebx
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4aec00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
mov byte [ebp - 1], 0
call fcn.00406c48
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor ecx, ecx
push ebp
push 0x4aed40
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [0x4bcf48]
cmp byte [eax], 0
jne 0x4aec42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aed53
mov eax, dword [0x4bcb84]
cmp dword [eax + 0x50], 0
jne 0x4aec5a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aed53
lea edx, [ebp - 0x5c]
mov eax, dword [0x4bcb84]
mov eax, dword [eax + 0x88]
mov ecx, 0x4c
call fcn.004b1098
fstp st(0)
lea edx, [ebp - 0xa8]
mov eax, dword [0x4bcb84]
mov eax, dword [eax + 0x98]
mov ecx, 0x4c
call fcn.004b1098
fstp st(0)
mov eax, dword [ebp - 0xa8]
cmp eax, 1
jb 0x4aeca1
cmp eax, 0x12
jbe 0x4aecc4
call fcn.004aea60
test al, al
je 0x4aecb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aec1d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aed53
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x4aecdd
pop dword fs:[0]
add esp, 8
jmp 0x4aed4f
inc eax
mov esi, edx
sub esi, eax
jl 0x4aed0c
inc esi
mov edx, eax
lea ebx, [ebp + edx*4 - 0xa8]
mov eax, dword [ebx]
cmp eax, 1
jb 0x4aed0c
cmp eax, 9
ja 0x4aed0c
call fcn.004ae3b0
push 0xa
call sub.GetDeviceCaps_Sleep
add ebx, 4
dec esi
jne 0x4aecee
call fcn.00406c48
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x4aed27
cmp eax, 0x2710
jbe 0x4aed33
jmp 0x4aed29
jle 0x4aed33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aed53
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aec1d
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [0x4bcb84]
mov eax, dword [eax + 0x78]
call fcn.004b0f9c
mov dword [ebp - 8], eax
call fcn.00406c48
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4aee0c
push dword fs:[edx]
mov dword fs:[edx], esp
push 1
call sub.GetDeviceCaps_Sleep
mov eax, dword [0x4bcf48]
cmp byte [eax], 0
jne 0x4aedaf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aee1b
call fcn.00406c48
xor edx, edx
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x4aedca
cmp eax, 0x2710
jbe 0x4aedd6
jmp 0x4aedcc
jle 0x4aedd6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aee1b
mov eax, dword [0x4bcb84]
mov eax, dword [eax + 0x80]
call fcn.004b0f9c
cmp eax, dword [ebp - 8]
jb 0x4aedff
mov eax, 9
call fcn.004ae3b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aee1b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aed86
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aee28
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, eax
call fcn.00406c48
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call fcn.00406c48
xor edx, edx
sub eax, dword [ebp - 8]
sbb edx, dword [ebp - 4]
push edx
push eax
mov eax, esi
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4aee61
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4aee65
jmp 0x4aee6e
pop edx
pop eax
jl 0x4aee6e
push 0x64
call sub.GetDeviceCaps_Sleep
jmp 0x4aee3f
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4afeb4
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b00da
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402adc
test eax, eax
jne 0x4b00af
xor edx, edx
push ebp
push 0x4b0097
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x160]
push eax
push 0x104
call fcn.00406c30
lea edx, [ebp - 0x168]
xor eax, eax
call fcn.00402b3c
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.00409310
push dword [ebp - 0x164]
push 0x4b00f4
lea eax, [ebp - 0x16c]
call fcn.004b0108
push dword [ebp - 0x16c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a20
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402b3c
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x416994]
call fcn.0041b404
mov ebx, eax
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x416994]
call fcn.0041b404
mov esi, eax
push 0
push 0
mov edx, ebx
mov eax, esi
call fcn.0041b1ec
call fcn.00402b9c
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
sub eax, 0x64
sbb edx, 0
call fcn.0040317c
cdq
push edx
push eax
mov eax, ebx
call fcn.0041af70
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.0041af50
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040317c
cdq
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.0041b1ec
mov eax, ebx
call fcn.004038cc
mov eax, esi
call fcn.004038cc
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.0040315c
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0xc]
push 0x4b0100
lea edx, [ebp - 0x178]
xor eax, eax
call fcn.00402b3c
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.004b02a0
push dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x170]
call fcn.00404b60
push eax
push 0
call fcn.00406af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b009e
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b00e1
lea eax, [ebp - 0x178]
mov edx, 6
call fcn.004046c4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046c4
ret
Function at 0x4b213c
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
xor eax, eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b22f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d4]
xor eax, eax
call fcn.00402b3c
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 4]
mov edx, 0x4b2310
call fcn.00409248
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402ef0
lea eax, [ebp - 0x1d0]
call fcn.00402c8c
call fcn.0040291c
mov edx, 0x4b2320
lea eax, [ebp - 0x1d0]
call fcn.00404d7c
call fcn.00403380
call fcn.0040291c
mov edx, 0x4b2334
lea eax, [ebp - 0x1d0]
call fcn.00404d7c
call fcn.00403380
call fcn.0040291c
push 0x4b2340
lea edx, [ebp - 0x1dc]
xor eax, eax
call fcn.00402b3c
push dword [ebp - 0x1dc]
push 0x4b2350
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.00404a20
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d0]
call fcn.00404d7c
call fcn.00403380
call fcn.0040291c
push 0x4b235c
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402b3c
push dword [ebp - 0x1e4]
push 0x4b2370
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00404a20
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1d0]
call fcn.00404d7c
call fcn.00403380
call fcn.0040291c
mov edx, 0x4b2384
lea eax, [ebp - 0x1d0]
call fcn.00404d7c
call fcn.00403380
call fcn.0040291c
lea eax, [ebp - 0x1d0]
call fcn.00402fb8
call fcn.0040291c
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
push 0
mov eax, dword [0x4bceb4]
mov eax, dword [eax]
call fcn.0045445c
push eax
call fcn.0042c908
mov eax, dword [0x4bcd00]
mov eax, dword [eax]
call fcn.0043f458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b22ff
lea eax, [ebp - 0x1e4]
mov edx, 5
call fcn.004046c4
lea eax, [ebp - 4]
call fcn.004046a0
ret
Function at 0x4b2bd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
call fcn.00406c48
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [0x4be074]
cmp byte [eax + 0x31d], 0
jne 0x4b2c23
call fcn.00406c48
xor edx, edx
sub eax, dword [esp]
sbb edx, dword [esp + 4]
push edx
push eax
mov eax, esi
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4b2c16
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4b2c1a
jmp 0x4b2c23
pop edx
pop eax
jl 0x4b2c23
push 0x64
call sub.GetDeviceCaps_Sleep
jmp 0x4b2be5
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b2d10
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4b2ddf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4be070]
mov edx, dword [eax]
call dword [edx + 0x44]
push 0
push 0x4b38d4
call fcn.00407128
mov eax, dword [0x4be070]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jl 0x4b2dc4
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [0x4be070]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00408dd4
call fcn.004b2c2c
lea eax, [ebp - 8]
call fcn.004b1868
mov edx, dword [ebp - 8]
mov eax, 0x4b2df4
call fcn.004b1748
cmp dword [0x4be154], 0
jne 0x4b2d9f
push 0x4be15c
push 0
push 0
push 0x4aee78
push 0
push 0
call fcn.00406b08
mov dword [0x4be154], eax
cmp dword [0x4be158], 0
jne 0x4b2dc4
push 0x4be160
push 0
push 0
push 0x4aea4c
push 0
push 0
call fcn.00406b08
mov dword [0x4be158], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2de6
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046c4
ret

Function at 0x4b58f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b59b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10d]
push eax
push 0x104
call fcn.00406c30
push 0x4b59d0
push 0x4b59dc
mov ecx, dword [0x4bd668]
mov dl, 1
mov eax, dword [0x416b88]
call fcn.0041b9d4
mov esi, eax
lea eax, [ebp - 4]
call fcn.004b57bc
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404910
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.004049ac
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0041b64c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b59e8
mov eax, dword [ebp - 8]
call fcn.004091b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b59bf
lea eax, [ebp - 0x114]
call fcn.004046a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046c4
ret
Function at 0x4b59e8
Capabilities:
Acquire debug privileges
Install driver

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b50
mov eax, dword [ebp - 8]
call fcn.00404b50
xor eax, eax
push ebp
push 0x4b5bc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor edx, edx
push ebp
push 0x4b5b81
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00406ba8
mov edx, 0x4b5bdc
call fcn.004b5874
test al, al
jne 0x4b5a52
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5b96
call fcn.00406ba8
mov edx, 0x4b5bf0
call fcn.004b5874
test al, al
jne 0x4b5a72
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5b96
mov dl, 1
mov eax, dword [0x4303cc]
call fcn.00430478
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.00430518
mov cl, 1
mov edx, 0x4b5c10
mov eax, ebx
call fcn.0043065c
test al, al
je 0x4b5ae4
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00430580
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0043065c
mov ecx, 1
mov edx, 0x4b5c3c
mov eax, ebx
call fcn.0043098c
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, 0x4b5c4c
call fcn.004049ac
mov ecx, dword [ebp - 0x20]
mov edx, 0x4b5c5c
mov eax, ebx
call fcn.00430960
mov eax, ebx
call fcn.004304e8
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x4b5c70
call fcn.004049ac
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404f20
mov eax, dword [ebp - 0x14]
call fcn.00404f40
add eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x14]
call fcn.00404f40
add eax, eax
add ax, 2
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x14]
call fcn.00404f30
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b57ac
test eax, eax
je 0x4b5b48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5b96
mov edx, 0x80000002
mov eax, ebx
call fcn.00430518
mov cl, 1
mov edx, 0x4b5c10
mov eax, ebx
call fcn.0043065c
test al, al
je 0x4b5b70
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00430780
mov eax, ebx
call fcn.004304e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5b92
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5bd0
lea eax, [ebp - 0x20]
call fcn.004046a0
lea eax, [ebp - 0x14]
call fcn.00404dd4
lea eax, [ebp - 0x10]
call fcn.004046a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046c4
ret
Function at 0x40456c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004068c4
test esi, esi
jne 0x4045a4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406a00
jmp 0x4045c2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044b0
mov edi, eax
test esi, esi
je 0x4045c2
cmp dword [ebx], 0
je 0x4045c2
dec esi
jmp 0x4045ab
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fb054], 0
je 0x405e8d
cmp word [0x4fb330], 0xd7b2
jne 0x405e55
cmp dword [0x4fb338], 0
jbe 0x405e55
mov eax, 0x4fb32c
call dword [0x4fb348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x405eb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f8030], 0
jne 0x405ea9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406018
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 [0x4f8034], 0
je 0x40603e
mov edx, esi
mov eax, ebx
call dword [0x4f8034]
jmp 0x40604d
mov eax, 8
call fcn.004041f8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4fb055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fe0
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 0x407350
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407392
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4073b2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406aac
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408794
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4088fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004068c4
cmp si, word [0x4f87d0]
jb 0x40882e
cmp si, word [0x4f89d0]
ja 0x40882e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40882e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f87d0]
jae 0x408808
mov edi, ebx
dec edi
jmp 0x408829
cmp si, word [ebx*8 + 0x4f87d0]
jbe 0x408818
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408829
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4f87d4]
call fcn.004086a4
jmp 0x40882e
cmp edi, dword [ebp - 0xc]
jae 0x4087f2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4088dd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088dd
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406aac
push dword [ebp - 0x164]
push 0x408918
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406aac
push dword [ebp - 0x168]
push 0x408928
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406aac
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408902
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004068bc
ret