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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
cmp eax, 0xcc
je 0x6f0bd6
push ebx
mov edx, dword [ebx + 0x180]
call dword [edx]
pop ecx
xor ecx, ecx
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x14], 0xcc
jmp 0x6f0bd6
mov eax, dword [ebx + 8]
test eax, eax
je 0x6f0b8f
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x60]
mov dword [eax + 8], edx
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
mov esi, dword [ebx + 0x78]
lea eax, [ebx + 0x78]
push 0
push eax
push 0
push ebx
mov edx, dword [ebx + 0x184]
call dword [edx + 4]
add esp, 0x10
mov ecx, dword [ebx + 0x78]
cmp esi, ecx
jne 0x6f0bb2
xor eax, eax
jmp 0x6f0bf5
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x60]
cmp edx, ecx
jb 0x6f0b78
push ebx
mov eax, dword [ebx + 0x180]
call dword [eax + 4]
pop ecx
push ebx
mov edx, dword [ebx + 0x180]
call dword [edx]
pop ecx
xor ecx, ecx
mov dword [ebx + 0x78], ecx
mov eax, dword [ebx + 0x180]
mov dl, byte [eax + 8]
test dl, dl
jne 0x6f0bb2
mov ecx, 0xce
mov al, byte [ebx + 0x41]
test al, al
jne 0x6f0bf0
dec ecx
mov dword [ebx + 0x14], ecx
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x6fce94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x6c]
sub eax, edx
mov ecx, dword [ebx + 0x64]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x6fced8
mov edx, dword [ebx + 0x24]
sub edx, 0x106
add edx, esi
mov ecx, dword [ebx + 0x64]
cmp edx, ecx
ja 0x6fcf63
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.006e6464
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x3c]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp esi, ecx
ja 0x6fcf2c
mov cx, word [ebp - 4]
sub cx, si
jmp 0x6fcf2e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x6fcf13
mov eax, esi
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x38]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp esi, ecx
ja 0x6fcf58
mov cx, word [ebp - 4]
sub cx, si
jmp 0x6fcf5a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x6fcf3f
add dword [ebp - 8], esi
mov edi, dword [ebx]
mov eax, dword [edi + 4]
test eax, eax
je 0x6fcfd0
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x64]
add ecx, eax
mov edx, dword [ebx + 0x6c]
add ecx, edx
push ecx
push edi
call fcn.006fcb50
add esp, 0xc
add dword [ebx + 0x6c], eax
mov ecx, dword [ebx + 0x6c]
cmp ecx, 3
jb 0x6fcfb9
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
mov edx, dword [ebx + 0x4c]
and eax, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x6c]
cmp eax, 0x106
jae 0x6fcfd0
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x6fcea3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x736f50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x7370c3
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x73709e
push dword fs:[edx]
mov dword fs:[edx], esp
mov word [ebp - 0x216], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.0040a550
lea eax, [ebp - 0x21c]
mov edx, 0x7370dc
call fcn.0040a73c
mov eax, dword [ebp - 0x21c]
call fcn.0040a528
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x73700f
lea eax, [ebp - 0x216]
call fcn.00409db0
lea edx, [ebp - 0x216]
mov ecx, ebx
xchg ecx, eax
call fcn.00409a48
jmp 0x737016
mov eax, ebx
call fcn.004098c0
cmp si, 0x61
jae 0x737038
lea edx, [ebp - 0x220]
mov eax, dword [ebx]
call fcn.00429db8
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.00409ca0
jmp 0x737052
lea edx, [ebp - 0x224]
mov eax, dword [ebx]
call fcn.00429da4
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.00409ca0
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x230]
xor ecx, ecx
mov eax, 0x7370f0
call fcn.00423e4c
mov edx, dword [ebp - 0x228]
mov eax, ebx
call fcn.00409ca0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7370a5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x73a254
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x73a30b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040a528
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x73a296
call fcn.0040902c
jmp 0x73a312
mov eax, ebx
call fcn.00406f20
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.0040a528
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x73a2bf
call fcn.0040902c
jmp 0x73a312
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x73a320
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
jne 0x73a2e0
call fcn.0040902c
jmp 0x73a312
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x73a312
mov eax, dword [ebp - 8]
call fcn.00406f3c
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x740cec
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
test ebx, ebx
je 0x740d80
mov edx, dword [0x73d178]
mov eax, 8
call fcn.0040b7b8
mov esi, eax
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00409ca0
mov byte [esi + 4], 0
mov edx, esi
mov eax, ebx
call fcn.0053b934
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.0053bae4
mov eax, dword [edi + 0x45c]
cmp eax, dword [ebp + 8]
jne 0x740d50
mov edx, dword [edi + 0x458]
mov eax, ebx
call fcn.0053bb84
jmp 0x740d80
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
call fcn.0040a528
push eax
call sub.shell32.dll_SHGetFileInfoW
mov edx, dword [ebp - 0x2b4]
mov eax, ebx
call fcn.0053bb84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x74b078
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x74b0a6
mov eax, ebx
call fcn.0074bb34
cmp dword [ebx + 0x40], 0
je 0x74b09f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x74b117
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x74b109
cmp dword [ebx + 8], 0
je 0x74b0c8
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 0x74b0da
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x74b109
cmp dword [ebx + 8], 0
je 0x74b0bb
cmp eax, 3
je 0x74b0ed
dec eax
jne 0x74b0bb
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 0x74b0bb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x74b0bb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x74b135
cmp dword [ebx + 0x14], 0xcc
je 0x74b135
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.0074b140
pop ebx
ret
Function at 0x775b38
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, eax
xor eax, eax
push ebp
push 0x775cb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, edx
test esi, esi
je 0x775b75
or ebx, 0xffff
mov eax, esi
call fcn.0040a528
mov esi, eax
jmp 0x775b77
xor esi, esi
xor eax, eax
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
push edi
call sub.winhttp.dll_WinHttpQueryHeaders
call sub.kernel32.dll_GetLastError
cmp eax, 0x2f76
jne 0x775ba5
mov eax, dword [ebp + 8]
call fcn.004098c0
jmp 0x775c88
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x775bf5
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x1c]
mov edx, dword [0x842e24]
call fcn.00427594
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, dword [0x7ed23c]
mov dl, 1
mov eax, dword [0x778324]
call fcn.00428904
call fcn.00408f38
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404b78]
call fcn.0040c010
add esp, 4
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
push edi
call sub.winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x775c71
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x842e24]
call fcn.00427594
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, dword [0x7ed23c]
mov dl, 1
mov eax, dword [0x778324]
call fcn.00428904
call fcn.00408f38
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042dddc
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.0042dc48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x775cb8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409920
lea eax, [ebp - 4]
mov edx, dword [0x404b78]
call fcn.0040c134
ret

Function at 0x775e86
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x775e47
add esp, 0xfffffff0
call fcn.004080f4
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.0077fe7c
mov dl, 1
mov eax, dword [0x774b0c]
call fcn.00777df4
mov dword [edi + 0x98], eax
mov dl, 1
mov eax, dword [0x763c9c]
call fcn.0076bb84
mov dword [edi + 0x94], eax
mov eax, dword [0x7ecbe4]
call fcn.00777ad0
push 0
push 0
push 0
push 1
push 0x775ed0
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0x90], esi
test esi, esi
jne 0x775eb5
mov ecx, dword [0x7ed4fc]
mov dl, 1
mov eax, dword [0x7783dc]
call fcn.004288c8
call fcn.00408f38
mov eax, edi
test bl, bl
je 0x775eca
call fcn.0040814c
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x77690c
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x776ac7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x10], 0
jle 0x776941
movzx edi, word [esi + 0x10]
jmp 0x776943
xor edi, edi
push 0
push edi
mov eax, dword [esi + 0xc]
call fcn.0040a528
push eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x90]
push eax
call sub.winhttp.dll_WinHttpConnect
mov dword [ebx + 0x88], eax
cmp dword [ebx + 0x88], 0
jne 0x776994
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [0x7eccbc]
mov dl, 1
mov eax, dword [0x7784a4]
call fcn.00428904
call fcn.00408f38
xor edi, edi
mov eax, dword [esi]
mov edx, 0x776ae4
call fcn.0040a92c
jne 0x7769aa
or edi, 0x800000
push edi
push 0
push 0
push 0
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00775af8
mov eax, dword [ebp - 0xc]
call fcn.0040a528
push eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.007691c4
mov eax, dword [ebp - 0x10]
call fcn.0040a528
push eax
mov eax, dword [ebx + 0x88]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov dword [ebx + 0x8c], eax
cmp dword [ebx + 0x8c], 0
jne 0x776a38
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x24]
mov edx, dword [0x842e24]
call fcn.00427594
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [0x7ed430]
mov dl, 1
mov eax, dword [0x7784a4]
call fcn.00428904
call fcn.00408f38
mov esi, dword [ebx + 0x10]
push esi
push esi
mov eax, dword [ebx + 0xc]
push eax
push 0
mov eax, dword [ebx + 0x8c]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x776a9f
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x28]
mov edx, dword [0x842e24]
call fcn.00427594
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [0x7ed678]
mov dl, 1
mov eax, dword [0x7784a4]
call fcn.00428904
call fcn.00408f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x776ace
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00409920
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00409920
ret
Function at 0x78f424
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x78f42d
xchg dword [ebp - 4], ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004099a4
mov eax, dword [ebp - 8]
call fcn.004099a4
mov eax, dword [ebp + 8]
call fcn.004099a4
xor eax, eax
push ebp
push 0x78f5a6
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x842e80]
push 0x78f5c4
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a81c
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00422bb8
test al, al
je 0x78f53c
mov eax, dword [ebp - 0xc]
call fcn.0078e504
push 5
lea eax, [ebp - 0x10]
mov ecx, 0x78f5c4
mov edx, dword [0x842e80]
call fcn.0040a794
mov eax, dword [ebp - 0x10]
call fcn.0040a528
push eax
mov eax, dword [ebp - 8]
call fcn.0040a528
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a528
push eax
push 0x78f5d8
push esi
call sub.shell32.dll_ShellExecuteW
mov esi, eax
cmp esi, 0x20
ja 0x78f573
push 0x78f5f0
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00422170
push dword [ebp - 0x18]
push 0x78f628
push 0x78f638
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00422170
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x7ed534]
mov eax, dword [eax]
call fcn.00499660
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040a81c
mov eax, dword [ebp - 0x14]
call fcn.0054fe64
jmp 0x78f573
cmp byte [ebp + 0xc], 0
jne 0x78f56b
push dword [ebp - 4]
push 0x78f648
push 0x78f658
push 0x78f678
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040a81c
mov eax, dword [ebp - 0x24]
call fcn.0054fe64
jmp 0x78f573
mov eax, dword [ebp + 8]
call fcn.0054fe64
test bl, bl
je 0x78f583
mov eax, dword [0x7ed730]
mov eax, dword [eax]
call fcn.005baa34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x78f5ad
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00409920
lea eax, [ebp + 8]
call fcn.004098c0
ret

Function at 0x78f67c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004099a4
xor eax, eax
push ebp
push 0x78f6cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a528
push eax
push 0x78f6dc
push ebx
call sub.shell32.dll_ShellExecuteW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x78f6d3
lea eax, [ebp - 4]
call fcn.004098c0
ret
Function at 0x401230
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
call fcn.00401100
mov eax, dword [0x40cba4]
mov ebp, dword [esp + 0x128]
mov ebx, dword [sym.imp.KERNEL32.dll__llseek]
test eax, eax
je 0x40133b
mov eax, dword [0x40c29c]
test eax, eax
jne 0x40133b
push 0x40c180
push 0x40c188
push 0x40c080
push 0x40c298
push ebp
call fcn.00403c42
mov edi, 0x40c188
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40c080
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40c180
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40c080
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
movsx eax, word [0x40cba0]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x40cba4]
push edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x40133b
mov esi, dword [sym.imp.KERNEL32.dll__lread]
movsx edx, word [0x40cba0]
lea ecx, [esp + 0x10]
push 0x114
push ecx
push edx
call esi
cmp eax, 0xffffffff
je 0x40133b
lea eax, [esp + 0x24]
push 0x40c080
push eax
call fcn.00409da0
add esp, 8
test eax, eax
je 0x40133d
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40133d
movsx ecx, word [0x40cba0]
push 0
push edi
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x4012f2
xor edi, edi
push 0x1c
call fcn.00403bce
mov esi, eax
add esp, 4
test esi, esi
jne 0x401358
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
test edi, edi
je 0x4013a2
mov word [esi], 0xffff
push 1
movsx edx, word [0x40cba0]
push 0
push edx
call ebx
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
push 0x40b038
push ebp
call fcn.00403b90
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jae 0x4013d8
push esi
call fcn.00403b55
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
lea ecx, [esi + 0x14]
lea edx, [esi + 0x10]
push ecx
push edx
push ebp
call fcn.00401000
add esp, 0xc
test eax, eax
je 0x401403
push esi
call fcn.00403b55
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
xor edi, edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__lopen]
cmp ax, 0xffff
mov word [esi], ax
jne 0x40142c
push esi
call fcn.00403b55
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esi + 0x18], eax
push 2
movsx eax, word [esi]
push edi
push eax
call ebx
movsx ecx, word [esi]
push edi
push edi
push ecx
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x401670
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x110
lea eax, [esp + 0x10]
push 0x100
push eax
push 2
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4017e6
lea ecx, [esp + 0x10]
push str.English
push ecx
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x4016bb
mov edx, dword [0x40b0c0]
mov dword [esp], edx
jmp 0x4017e6
lea eax, [esp + 0x10]
push str.French
push eax
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x4016e1
mov ecx, dword [0x40b0b4]
mov dword [esp], ecx
jmp 0x4017e6
lea edx, [esp + 0x10]
push str.German
push edx
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x401706
mov eax, dword [0x40b0a8]
mov dword [esp], eax
jmp 0x4017e6
lea ecx, [esp + 0x10]
push str.Italian
push ecx
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x40172c
mov edx, dword [0x40b09c]
mov dword [esp], edx
jmp 0x4017e6
lea eax, [esp + 0x10]
push 0x40b094
push eax
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x401752
mov ecx, dword [0x40b090]
mov dword [esp], ecx
jmp 0x4017e6
lea edx, [esp + 0x10]
push str.Portuguese
push edx
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x401774
mov eax, dword [0x40b080]
mov dword [esp], eax
jmp 0x4017e6
lea ecx, [esp + 0x10]
push str.Spanish
push ecx
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x401797
mov edx, dword [0x40b074]
mov dword [esp], edx
jmp 0x4017e6
lea eax, [esp + 0x10]
push 0x40b068
push eax
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x4017ba
mov ecx, dword [0x40b064]
mov dword [esp], ecx
jmp 0x4017e6
lea edx, [esp + 0x10]
push str.Chinese__traditional_
push edx
call fcn.004015f0
add esp, 8
cmp eax, 0xffffffff
jle 0x4017dc
mov eax, dword [0x40b048]
mov dword [esp], eax
jmp 0x4017e6
mov cl, byte [0x40c4a0]
mov byte [esp], cl
mov edx, dword [esp + 0x114]
test edx, edx
je 0x401822
push esi
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x110
ret
mov eax, 1
add esp, 0x110
ret
Function at 0x407cdd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40bc30
cmp edx, dword [eax]
je 0x407cff
add eax, 8
inc ecx
cmp eax, 0x40bcc0
jl 0x407cf0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40bc30]
jne 0x407e2d
mov eax, dword [0x40c4b0]
cmp eax, 1
je 0x407e07
test eax, eax
jne 0x407d30
cmp dword [0x40b6f4], 1
je 0x407e07
cmp edx, 0xfc
je 0x407e2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407d67
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407160
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405970
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407daa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405970
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a550
push edi
call fcn.004044e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407160
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407170
lea eax, [ebp - 0xa0]
push 0x40a530
push eax
call fcn.00407170
push dword [esi + 0x40bc34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407170
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409219
add esp, 0x2c
pop edi
jmp 0x407e2d
lea eax, [ebp + 8]
lea esi, [esi + 0x40bc34]
push 0
push eax
push dword [esi]
call fcn.00405970
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret