joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ea10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455eb2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46c6a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x45eeb0
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.0040eec0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.0040fe40
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x850534]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [ebp + 0xc]
push 2
mov byte [ebp - 4], 2
call fcn.0040f520
test eax, eax
jne 0x40eb01
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40eafa
or eax, 4
push ebx
push eax
call fcn.00404ce0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40fe40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45466b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46c6a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004513a2
push 4
mov dword [ebp - 4], 0
call fcn.004162af
mov edi, eax
add esp, 4
test edi, edi
je 0x40febc
call fcn.00451213
mov dword [edi], eax
call fcn.00451041
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00451363
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40feb2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0045138b
jmp 0x40febe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4112a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x46c6a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
xor esi, esi
lea eax, [ebx + 2]
lea esp, [esp]
movzx ecx, byte [eax - 2]
movzx edx, byte [eax - 1]
mov byte [ebp + esi - 0xc], cl
movzx ecx, byte [eax]
mov byte [ebp + esi - 0xb], dl
movzx edx, byte [eax + 1]
mov byte [ebp + esi - 0xa], cl
mov byte [ebp + esi - 9], dl
add esi, 4
add eax, 4
cmp esi, 8
jb 0x4112c0
mov ecx, dword [ebx]
shr ecx, 3
and ecx, 0x3f
mov eax, 0x38
cmp ecx, 0x38
jb 0x411301
mov eax, 0x78
sub eax, ecx
lea ecx, [ebx + 0x58]
push ecx
mov dword [ebp - 0x10], ecx
call fcn.004111e0
lea eax, [ebp - 0xc]
push eax
mov eax, 8
call fcn.004111e0
lea esi, [edi + 1]
lea eax, [ebx + 0xa]
mov edi, 4
jmp 0x411330
movzx ecx, byte [eax - 2]
mov byte [esi - 1], cl
movzx edx, byte [eax - 1]
mov byte [esi], dl
movzx ecx, byte [eax]
mov byte [esi + 1], cl
movzx edx, byte [eax + 1]
mov byte [esi + 2], dl
add eax, 4
add esi, 4
sub edi, 1
jne 0x411330
push 0x98
push edi
push ebx
call fcn.0043b170
mov esi, dword [ebp - 0x10]
push 0x40
push edi
push esi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], 0x67452301
mov dword [ebx + 0xc], 0xefcdab89
mov dword [ebx + 0x10], 0x98badcfe
mov dword [ebx + 0x14], 0x10325476
call fcn.0043b170
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
mov byte [esi], 0x80
pop esi
xor ecx, ebp
pop ebx
call fcn.00435339
mov esp, ebp
pop ebp
ret
Function at 0x411a90
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4bc
mov eax, dword [0x46c6a0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [esp + 0x74]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
call fcn.0043b170
push 0x45eb04
push edi
mov byte [esp + 0x84], 0x80
call fcn.004386fb
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x411b1b
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.00435339
mov esp, ebp
pop ebp
ret
push 2
push ebx
push edi
call fcn.0043a5cf
push edi
call fcn.0043aa22
push 0
mov ebx, eax
push 0
push edi
mov dword [esp + 0x2c], ebx
call fcn.0043a5cf
add esp, 0x1c
and ebx, 0x800003ff
jns 0x411b4d
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, dword [esp + 0x10]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esp + 0x14], ebx
test eax, eax
jle 0x411ba9
mov dword [esp + 0x10], eax
lea esp, [esp]
push edi
push 1
lea ecx, [esp + 0xc8]
push 0x400
push ecx
call fcn.0043902c
add esp, 0x10
lea edx, [esp + 0xc0]
push edx
mov eax, 0x400
lea ebx, [esp + 0x1c]
call fcn.004111e0
sub dword [esp + 0x10], 1
jne 0x411b70
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x411bd4
push edi
push 1
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.0043902c
add esp, 0x10
lea ecx, [esp + 0xc0]
mov eax, ebx
push ecx
lea ebx, [esp + 0x1c]
call fcn.004111e0
push edi
call fcn.0043a6cb
add esp, 4
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x18]
call fcn.004112a0
xor eax, eax
mov byte [esi], 0
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
xor edi, edi
mov edi, edi
movzx edx, byte [esp + edi + 0xb0]
push edx
push 0x45f0f8
push esi
call fcn.00435fec
inc edi
add esp, 0xc
add esi, 2
cmp edi, 0x10
jl 0x411c10
mov ecx, dword [esp + 0x4c4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00435339
mov esp, ebp
pop ebp
ret
Function at 0x857850
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe8b7fb
mov ecx, dword [edi + esi*8 + 4]
cmp di, si
stc
cmp edx, 0x7b51138c
xor ecx, 0x2a975152
cmc
cmp bx, di
sub eax, ecx
mov cl, 0x8e
mov cl, dl
cmc
ror eax, cl
mov ecx, dword [edi + esi*8]
xor ecx, 0x717c566d
cmc
test dl, 0xbb
xor eax, edx
clc
sub edx, ecx
setl cl
mov cl, al
stc
clc
ror edx, cl
test edi, eax
cmc
xor edx, eax
stc
clc
cmp si, 0x71a7
sub esi, 1
jne 0xe781ca
mov ecx, dword [edi + 4]
xor ecx, 0x2a975152
sub eax, ecx
rcr esi, 0x8e
bt si, sp
xchg esi, esi
mov dword [ebx + 4], eax
add al, 0x90
mov eax, dword [edi]
shrd si, cx, 0x74
add esi, 0x219560ae
xor eax, 0x717c566d
neg si
sub edx, eax
bswap si
cmovnp esi, edi
mov dword [ebx], edx
movzx esi, bx
bswap esi
cmove si, cx
pop esi
ret
mov eax, dword [ecx + 4]
cwd
movsx edx, dx
mov edx, dword [ecx]
push esi
bswap esi
mov esi, 0xf
jmp 0xe781ca

Function at 0x8590e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x8591ec
test eax, eax
je 0x8591ec
push esi
push edi
mov ecx, 0x10
mov esi, 0x874018
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x8591d3
lea edi, [eax + 4]
jmp 0x859137
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x85914c
mov dword [ebp - 4], 2
jmp 0x85916d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x859163
mov dword [ebp - 4], 1
jmp 0x85916d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x8591e3
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x8591a6
mov byte [ecx], 0x3d
jmp 0x8591b2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x8591bd
mov byte [ecx], 0x3d
jmp 0x8591c3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x859134
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x85d050
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
cmp byte [ebp + 0xc], 0
push ebx
push edi
mov edi, ecx
jne 0x85d077
push eax
mov ebx, edi
call fcn.0085c620
test al, al
jne 0x85d077
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x85d080
sub eax, edx
push esi
mov esi, eax
push esi
mov dword [ebp - 4], esi
call fcn.00863514
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov ebx, eax
push ebx
push esi
push edx
call fcn.00859200
add esp, 0x14
test al, al
jne 0x85d0c1
push ebx
call fcn.00863c04
add esp, 4
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x68], al
mov eax, dword [ebp - 4]
push eax
push ebx
lea esi, [ebp - 0x68]
mov dword [ebp - 0x18], 0x67452301
mov dword [ebp - 0x14], 0xefcdab89
mov dword [ebp - 0x10], 0x98badcfe
mov dword [ebp - 0xc], 0x10325476
mov dword [ebp - 8], 0xc3d2e1f0
call fcn.00859310
cmp byte [ebp - 0x68], 0
jne 0x85d10e
call fcn.008598b0
mov byte [ebp - 0x68], 1
xor ecx, ecx
mov eax, dword [ebp + ecx - 0x18]
mov edx, eax
shr edx, 0x10
rol dx, 8
rol ax, 8
movzx eax, ax
movzx edx, dx
shl eax, 0x10
or edx, eax
mov dword [ebp + ecx - 0x7c], edx
add ecx, 4
cmp ecx, 0x14
jl 0x85d110
push ebx
call fcn.00863c04
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0x7c]
push 0x14
push eax
mov dword [ebp + 8], 0x40
call fcn.008590e0
mov ecx, dword [ebp + 8]
mov bl, byte [ebp + 0xc]
add esp, 0x14
mov byte [ebp + ecx - 0xbc], 0
mov ecx, 0x874374
test bl, bl
jne 0x85d17a
mov ecx, 0x87438c
xor eax, eax
cmp byte [edi + 4], al
je 0x85d189
inc eax
cmp byte [edi + eax + 4], 0
jne 0x85d181
cmp byte [ecx], 0
je 0x85d1a4
mov edi, edi
cmp eax, 0x800
jae 0x85d1a4
mov dl, byte [ecx]
mov byte [edi + eax + 4], dl
inc ecx
inc eax
cmp byte [ecx], 0
jne 0x85d190
mov byte [eax + edi + 4], 0
push 1
lea eax, [ebp - 0xbc]
mov ecx, edi
call fcn.0085cab0
test bl, bl
je 0x85d1c1
call fcn.0085cb60
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b2e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
jmp 0x4b2e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b2e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2e70
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x4b2e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b2ea4
jne 0x4b2ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2ec3
dec eax
add ebx, ebx
jne 0x4b2eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b2e88
add ebx, ebx
jne 0x4b2ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b2f15
sub ecx, ecx
sub eax, 3
jb 0x4b2edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b2f4a
sar eax, 1
push eax
pop ebp
jmp 0x4b2ee6
add ebx, ebx
jne 0x4b2ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
inc ecx
add ebx, ebx
jne 0x4b2ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
add ebx, ebx
jne 0x4b2f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b2ef6
jne 0x4b2f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b2ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b2f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b2f26
jmp 0x4b2e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b2f34
add edi, ecx
jmp 0x4b2e76
pop esi
push esi
pop edi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b2f52
cmp byte [edi], 0x13
jne 0x4b2f52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b2f57
lea edi, [esi + 0xae000]
mov eax, dword [edi]
or eax, eax
je 0x4b2fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4ae8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb4c3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b2f84
mov ecx, edi
jns 0x4b2fb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb4c40]
test eax, eax
je 0x4b2fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b2fa1
call dword [esi + 0xb4c50]
mov ebp, dword [esi + 0xb4c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3003
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
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

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x4027a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4027dd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4027fd
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00403fc8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4029c4
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.00403d58
test esi, esi
jne 0x4029fa
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.00403e48
jmp 0x402a18
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402878
mov edi, eax
test esi, esi
je 0x402a18
cmp dword [ebx], 0
je 0x402a18
dec esi
jmp 0x402a01
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f88
Capabilities:
Query or enumerate registry value

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

Function at 0x403bbc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a044], 0
je 0x403c1d
cmp word [0x41a218], 0xd7b2
jne 0x403be5
cmp dword [0x41a220], 0
jbe 0x403be5
mov eax, 0x41a214
call dword [0x41a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x419068
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 0x403c44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41902c], 0
jne 0x403c39
push 0
push 0x419060
push 0x419068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e6c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40509c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404eef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40509c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404eef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4050b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f78
xor eax, eax
push ebp
push 0x404f71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404cb4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050d8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f56
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f78
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405092
cmp byte [ebp - 0xd], 0
jne 0x404fbf
cmp byte [ebp - 0x12], 0
je 0x405092
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fd8
dec ebx
cmp byte [ebx], 0x2e
je 0x404fe7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fd7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405092
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405024
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405092
cmp byte [ebp - 0xd], 0
je 0x405092
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405092
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret