joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d950
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x50d97e
mov eax, ebx
call fcn.0050e404
cmp dword [ebx + 0x40], 0
je 0x50d977
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x50d9ef
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x50d9e1
cmp dword [ebx + 8], 0
je 0x50d9a0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x50d9b2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x50d9e1
cmp dword [ebx + 8], 0
je 0x50d993
cmp eax, 3
je 0x50d9c5
dec eax
jne 0x50d993
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x50d993
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x50d993
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x50da0d
cmp dword [ebx + 0x14], 0xcc
je 0x50da0d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0050da18
pop ebx
ret
Function at 0x523a6c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x6310c0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x523a8e
shr eax, 1
xor eax, 0xedb88320
jmp 0x523a90
shr eax, 1
dec edx
jne 0x523a7c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x523a75
mov byte [0x6314c0], 1
pop esi
pop ebx
ret

Function at 0x523aac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6314c0], 0
jne 0x523ac3
call fcn.00523a6c
mov eax, edi
dec eax
test eax, eax
jl 0x523aeb
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6310c0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x523acd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x526878
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x526912.0
jmp dword [ecx*4 + 0x5268ab]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5268dd
sub dl, 8
je 0x5268ec
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x526520
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x526578
jmp case.0x526912.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x526912.0
movzx ecx, byte [ecx + 0x526919]
jmp dword [ecx*4 + 0x52692a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x526624
jmp case.0x526912.0
cmp dl, 3
jne 0x526957
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x52667c
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x526638
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5266c0
jmp case.0x526912.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x526982
sub dl, 8
je 0x52698e
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5266ec
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x526758
jmp case.0x526912.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5269ad
sub dl, 8
je 0x5269b9
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x526814
jmp case.0x526912.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x52683c
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x526a5b
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00525a24
test eax, eax
je 0x526a5b
mov eax, ebx
call fcn.00526a64
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x5269f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x526a64
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x526a95
dec al
je 0x526ad0
dec al
je 0x526b15
dec al
je 0x526b7e
jmp 0x526c08
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x526c08
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x526aa5
jmp 0x526c08
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x526c08
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x526ae0
jmp 0x526c08
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x526c08
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x526b44
xor ebp, ebp
jmp 0x526b54
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x526b5d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x526b25
jmp 0x526c08
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x526c08
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x526bd7
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00523af4
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x526b92
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x531a18
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x531a69
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x531a50
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x531a40
jmp 0x531a69
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x531a51
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x549c10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x549c74
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.004769dc
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00459c0c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549c7b
lea eax, [ebp - 0x14]
call fcn.00475c34
ret

Function at 0x54ae94
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54b074
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.0054a424
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x6205b0], eax
mov eax, dword [ebp - 0xc]
mov dword [0x6205b4], eax
mov eax, dword [ebp - 0x24]
mov dword [0x6205b8], eax
mov eax, dword [0x62aaf0]
cmp dword [eax], 2
sete byte [0x61fd7c]
push 0x54b080
call sub.KERNEL32.DLL_GetModuleHandleW
lea edx, [ebp - 4]
call fcn.0054d8f4
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x61fd7c], 0
jne 0x54af23
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0054db08
test al, al
je 0x54af23
mov eax, dword [ebp - 0x4c]
mov dword [0x6329c0], eax
jmp 0x54af2a
xor eax, eax
mov dword [0x6329c0], eax
call fcn.0054aba0
and eax, 0x7f
cmp eax, 0x12
ja case.0x54af3b.0
jmp dword [eax*4 + 0x54af42]
mov byte [0x61fd68], 1
jmp case.0x54af3b.0
mov byte [0x61fd6c], 1
jmp case.0x54af3b.0
mov byte [0x61fd70], 1
jmp case.0x54af3b.0
mov byte [0x61fd74], 1
jmp case.0x54af3b.0
mov byte [0x61fd78], 1
jmp case.0x54af3b.0
mov byte [0x61fd80], 1
mov byte [0x61fd84], 1
jmp case.0x54af3b.0
mov byte [0x61fd80], 1
mov byte [0x61fd88], 1
jmp case.0x54af3b.0
mov byte [0x61fd80], 1
mov byte [0x61fd88], 1
mov byte [0x61fd8c], 1
jmp case.0x54af3b.0
mov byte [0x61fd90], 1
jmp case.0x54af3b.0
mov byte [0x61fd94], 1
jmp case.0x54af3b.0
mov byte [0x61fd98], 1
jmp case.0x54af3b.0
mov byte [0x61fd9c], 1
jmp case.0x54af3b.0
mov byte [0x61fda0], 1
jmp case.0x54af3b.0
mov byte [0x61fda4], 1
jmp case.0x54af3b.0
mov byte [0x61fda8], 1
jmp case.0x54af3b.0
mov byte [0x61fdac], 1
jmp case.0x54af3b.0
mov byte [0x61fdb0], 1
jmp case.0x54af3b.0
mov byte [0x61fdb4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54b07b
lea eax, [ebp - 4]
call fcn.00475c34
ret
Function at 0x54c12c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x54c141
add esp, 0xfffffff0
call fcn.004746d0
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00474170
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.00475ff4
mov eax, esi
call fcn.00476928
push eax
movzx eax, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CreateMutexW
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x54c195
mov ecx, dword [0x62ac44]
mov dl, 1
mov eax, dword [0x54bcd0]
call fcn.005445a8
call fcn.004753f0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
sete al
mov byte [ebx + 4], al
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x54c1bc
call fcn.00474728
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x54db08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x54dbbe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00476928
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x54dba8
lea eax, [ebp - 4]
mov edx, edi
call fcn.00476ab4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.00476928
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x54dba8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x54dbd0
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x54dba8
cmp dword [ebp - 0xc], 0x34
jne 0x54dba8
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54dbc5
lea eax, [ebp - 4]
call fcn.00475c34
ret
Function at 0x593638
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x593760
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00593524
mov eax, dword [esi]
call fcn.00477b08
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x593c08]
call fcn.00477cd0
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004737bc
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004737bc
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00477b08
mov dword [ebp - 0xc], eax
mov eax, dword [0x62b2d8]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.005988a4
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00473b84
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00477b08
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.00598794
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.0059854c
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.0059889c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593767
lea eax, [ebp - 4]
mov edx, dword [0x593c08]
call fcn.00477df4
ret
Function at 0x5d3014
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.00476ab4
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5d3039
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.00476928
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x5d3058
mov eax, ebx
mov edx, dword [esp]
call fcn.00476ab4
pop ecx
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x6013f4
call fcn.00602554
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x601413
test bl, 1
je 0x601413
call fcn.006092f4
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x6053e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00600144
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.006001f4
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.006001f4
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x6280d1
lea ecx, [ebp - 0x200]
push ecx
call fcn.00600144
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.006001f4
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.00606b24
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x6054f9
push esi
call fcn.006001f4
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.006001f4
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.005ff298
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x6054d0
xor eax, eax
jmp 0x605580
push esi
call fcn.006001f4
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.006001f4
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00600073
add esp, 0xc
jmp 0x605539
mov edi, dword [ebx + 0x24]
push edi
call fcn.006001f4
pop ecx
push eax
push esi
call fcn.006001f4
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.006001f4
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.005ff2b8
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x605539
xor eax, eax
jmp 0x605580
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00600144
add esp, 8
push 0x6280d3
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00600144
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.00600144
add esp, 8
push 0x6280d5
mov edx, dword [ebx + 0x24]
push edx
call fcn.00600144
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x609288
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x6092b5
jmp 0x6092ec
call fcn.00609238
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.006001f4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.006001f4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x609370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x6287a8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x60944a
cmp dword [0x6287a4], 0
jne 0x60944a
cmp dword [0x6289cc], 0
je 0x609404
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00608d40
add esp, 8
mov ebx, eax
test eax, eax
jne 0x6093ea
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00608d40
add esp, 8
mov ebx, eax
test eax, eax
jne 0x6093ea
lea ebx, [ebp - 0x84]
jmp 0x6093eb
inc ebx
call fcn.00609328
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x609485
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x6287ac
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.006001f4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x6287af
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x609485
cmp dword [0x6287a4], 0
je 0x609464
cmp dword [0x6287a4], 0xffffffff
je 0x609485
push esi
call dword [0x6287a4]
pop ecx
mov eax, dword [0x6287a8]
test eax, eax
je 0x609485
cmp dword [0x6287a8], 0xffffffff
je 0x609485
cmp byte [eax], 0
je 0x609485
push esi
push eax
call fcn.00609288
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x609d9c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x6b3f64], 0
jne 0x609e28
cmp dword [0x6b3f98], 0
jne 0x609dcc
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x6b3f98], eax
test eax, eax
jne 0x609dcc
push str.GetEnvironmentStrings_failed
call fcn.0060949c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x6b3f98]
jmp 0x609de5
lea eax, [edi + 1]
add edi, edi
add edi, 2
add ebp, eax
inc esi
add ebx, edi
push ebx
call fcn.006004b4
pop ecx
mov edi, eax
test eax, eax
jne 0x609dd8
lea edi, [ebp + 1]
mov eax, edi
add eax, eax
push eax
call fcn.005ff298
pop ecx
mov ebx, eax
mov dword [0x6b3f68], ebx
test ebx, ebx
jne 0x609e13
xor eax, eax
jmp 0x609eef
add edi, edi
mov edx, dword [0x6b3f98]
push edi
push edx
push ebx
call fcn.005ffe8c
add esp, 0xc
jmp 0x609e48
xor esi, esi
mov ebx, dword [0x6b3f64]
jmp 0x609e42
push eax
call fcn.006004b4
pop ecx
test eax, eax
jne 0x609e3e
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x609e32
lea ebx, [esi + 4]
push 4
mov dword [0x6b3f6c], ebx
inc ebx
push ebx
call fcn.005ff1fc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x609e6b
xor eax, eax
jmp 0x609eef
cmp dword [0x6b3f64], 0
jne 0x609ea0
xor esi, esi
mov ebx, dword [0x6b3f68]
mov eax, dword [esp]
mov ebp, eax
jmp 0x609e91
mov dword [ebp], ebx
add edi, edi
add ebp, 4
add edi, 2
inc esi
add ebx, edi
push ebx
call fcn.006004b4
pop ecx
mov edi, eax
test eax, eax
jne 0x609e83
jmp 0x609ed1
xor esi, esi
mov ebx, dword [0x6b3f64]
mov eax, dword [esp]
mov edi, eax
jmp 0x609ecb
push eax
call fcn.006004b4
pop ecx
test eax, eax
je 0x609ec0
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x609ec4
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x609eaf
mov eax, dword [0x6b3f64]
test eax, eax
je 0x609ee1
push eax
call fcn.005ff2a8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x6b3f64], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret