joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100093d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x10015660], 0x5d2
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10009520
lea ecx, [0x100089a0]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], edx
mov dword [esp + 0x6c], 0x12f400
mov edx, dword [0x10015648]
mov dword [esp + 0x78], edx
mov edx, dword [0x1001564c]
mov dword [esp + 0x38], edx
mov edx, dword [0x10015650]
mov dword [esp + 0x44], edx
mov edx, dword [0x10015654]
mov dword [esp + 0x90], edx
mov edx, dword [0x10015658]
mov dword [esp + 0x70], edx
mov dword [0x1001565c], 0xeb1
mov dword [0x10015660], 0x1cb8
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x10009488
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1000949c
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x10009461
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x94], eax
mov dword [0x10015660], 0x1921
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x8c], eax
mov dword [0x1001565c], 0x1523
call fcn.10009d40
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10009510
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10008ff0
mov dword [0x1001565c], 0x1e49
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10009d40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [0x10015660], 0x2237
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x1001565c]
add esi, 0xffffdbbc
mov dword [0x1001565c], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x10009df0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10009dd2
mov eax, 0x2a6
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jmp 0x10009eae
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
add edx, 0xffffe7df
mov dword [0x1001565c], edx
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], ecx
je 0x10009d89
jmp 0x10009d98
mov eax, dword [ebp - 0x2c]
add eax, 0xffffc605
mov dword [0x1001565c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10009e34
jmp 0x10009d98
mov eax, dword [ebp - 0x14]
mov ecx, 0x1e97
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
je 0x10009daa
mov eax, 0x6cd
mov ecx, dword [ebp - 0x30]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
jl 0x10009df0
jmp 0x10009daa
mov dword [0x1001565c], 0xa51
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10009d98
mov dword [0x1001565c], 0x1fe4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10009d98
mov dword [0x1001565c], 0x24f4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10009d98
mov eax, 0x266a
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x10009d98
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [0x1001565c], ecx
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x1000a3f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10015664], 0
mov dword [0x10015668], 0
mov dword [0x10015674], 0
mov dword [0x1001565c], 0x835
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1000a568
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1000a455
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10015660], 0x1880
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10015664], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10015668], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1001566c], cl
mov dword [0x10015660], 0x3c01
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1001565c], 0x20b7
mov cl, byte [0x1001566c]
mov edx, dword [0x10015668]
mov byte [edi + edx], cl
mov edx, dword [0x1001565c]
add edx, 0x20d0
mov dword [0x1001565c], edx
mov edx, dword [0x10015664]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10015668]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x1001565c], 0x597
and ebx, 0xff
mov dword [0x10015674], ebx
mov dword [0x10015660], 0x25fb
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
xor cl, byte [edx + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
mov dword [0x1001565c], 0x709
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x38], ebx
je 0x1000a566
mov eax, dword [0x10015664]
mov ecx, dword [0x10015668]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x1000a455
jmp 0x1000a568
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x482adc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00482d5c
shr eax, 8
pop ecx
test al, al
je 0x482af5
pop ebp
jmp fcn.00482278
pop ebp
jmp fcn.00481ba0

Function at 0x482afc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x74]
lea eax, [esp + 0x20]
push ebp
push esi
push edi
push 0x34
push dword [esp + 0x7c]
mov edi, ebx
mov ebp, ebx
sub edi, dword [esp + 0x70]
sub ebp, dword [esp + 0x84]
push eax
mov dword [esp + 0x30], edi
call fcn.004a23b4
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x70], esi
jbe 0x482c47
mov ecx, dword [esp + 0x6c]
mov edx, ebx
movzx eax, byte [ecx + esi*2]
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + esi*2 + 1]
mov ecx, dword [esp + 0x68]
sub edx, eax
mov dword [esp + 0x28], eax
sub ecx, edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + eax*4 + 0x2c]
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
sub eax, edx
mov dword [esp + 0x20], eax
cmp eax, ebp
jb 0x482bd3
xor eax, eax
add edx, edi
inc eax
cmp edx, eax
cmovl edx, eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x74]
sub eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x78]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x24]
push eax
imul eax, ecx, 0x34
push edx
add eax, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push dword [esp + 0x3c]
lea eax, [ecx + eax*4]
push eax
call fcn.00482c50
mov edx, dword [esp + 0x40]
add esp, 0x24
jmp 0x482c34
mov eax, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 2
push eax
lea eax, [esp + 0x84]
push eax
call fcn.004a23b4
mov ecx, dword [esp + 0x24]
xor eax, eax
mov edx, dword [esp + 0x28]
inc eax
mov byte [esp + 0x8a], cl
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x7f], al
lea eax, [edx + ecx]
cmp ecx, eax
jae 0x482c34
mov ebx, dword [esp + 0x64]
mov ecx, edx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
lea edi, [ebx + edi*4]
mov ebx, dword [esp + 0x80]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add dword [esp + eax*4 + 0x2c], edx
inc esi
cmp esi, dword [esp + 0x70]
jb 0x482b39
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4a0efb
Capabilities:
Enumerate pe sections

Disassembly:
push edx
mov edx, dword [esp + 4]
lea edx, [edx + 0x1f]
xchg dword [esp + 4], edx
mov dword [esp + 4], edx
mov edx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0x5e6
xchg dword [esp], eax
push edi
mov edi, dword [esp + 4]
lea edi, [edi + 0x13]
xchg dword [esp + 4], edi
mov dword [esp + 4], edi
mov edi, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], eax
push edi
mov edi, dword [esp + 4]
lea edi, [edi + 0x3a]
xchg dword [esp + 4], edi
mov dword [esp + 4], edi
mov edi, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], eax
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0xf]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
popfd
push ebp
mov ebp, esp
leave
jmp fcn.004a1604

Function at 0x4a22bc
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x4a2322
push ebp
mov ebp, dword [esp + 0x18]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x18]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, edi
xor cl, byte [esi + ebp]
mov byte [esi], cl
inc esi
sub dword [esp + 0x10], 1
jne 0x4a22e2
mov esi, dword [esp + 0x24]
pop edi
pop ebp
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
pop ecx
ret
Function at 0x4a2964
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
jne 0x4a299d
xor eax, eax
jmp 0x4a2a79
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
cdq
and eax, 0xffff0000
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x30]
or ecx, dword [ebp - 0x2c]
jne 0x4a29d4
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4a2a4a
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], 0
jmp 0x4a29f9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x18]
jae 0x4a2a2b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
push eax
call fcn.004a2584
add esp, 8
test eax, eax
jne 0x4a2a29
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
jmp 0x4a2a2b
jmp 0x4a29f0
cmp dword [ebp - 0x10], 0
jl 0x4a2a4a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a2a5b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x14]
jb 0x4a2a5f
xor eax, eax
jmp 0x4a2a79
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40645c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406480
xor eax, eax
test eax, eax
je 0x406492
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406492
xor ecx, ecx
jmp 0x406495
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406581
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x4065b8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406592
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x40658d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065e9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x4065cb
pop edi
not eax
pop esi
ret 0xc

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001b611
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001b611
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x8003b13
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
call 0x8002b1f
ret
Function at 0x10003a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069208
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1007f1e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x10003a50
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x10003a5c
mov al, 1
jmp 0x10003bff
mov dword [ebp - 0x10], 8
call fcn.10005e10
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10005e10
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10005de0
add esp, 8
movzx eax, al
test eax, eax
je 0x10003a9f
xor al, al
jmp 0x10003bff
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.10003120
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.100031d0
mov ecx, eax
call fcn.10003d80
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.100071c0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.100031d0
mov ecx, eax
call fcn.10003d80
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.100041b0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x10003b1a
cmp dword [ebp - 0x6c], 1
je 0x10003b21
cmp dword [ebp - 0x6c], 3
je 0x10003bbb
jmp 0x10003bd3
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.100031d0
mov ecx, eax
call fcn.10003d80
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x10003b84
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.100031d0
mov ecx, eax
call fcn.10003d80
push eax
call fcn.1004d805
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10003b84
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10007350
mov al, byte [ebp - 0x61]
jmp 0x10003bff
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x10003ba7
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10007350
mov al, byte [ebp - 0x62]
jmp 0x10003bff
cmp dword [ebp - 0x38], 0
jne 0x10003bb9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.10003160
jmp 0x10003beb
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10007350
mov al, byte [ebp - 0x63]
jmp 0x10003bff
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10007350
mov al, byte [ebp - 0x64]
jmp 0x10003bff
jmp 0x10003ab2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1004d073
mov esp, ebp
pop ebp
ret
Function at 0x10012a10
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1007f1e0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10012a65
mov eax, dword [esp]
cmp al, 2
jne 0x10012a5f
shr eax, 8
cmp al, 2
jne 0x10012a5f
call fcn.10018270
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1004d073
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.1004d073
add esp, 0x194
ret

Function at 0x10013070
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1007f1e0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.1004f687
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x100130d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x100130d5
lea edx, [esp]
push edx
call dword [0x1007f00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1004d073
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1004d073
add esp, 0x108
ret
jmp 0x10013070

Function at 0x100130f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1007f1e0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.1004f687
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x100130d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x100130d5
lea edx, [esp]
push edx
call dword [0x1007f00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1004d073
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1004d073
add esp, 0x108
ret
jmp 0x10013070

Function at 0x10013d30
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x10013d52
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10013d46
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10013d82
cmp dword [esi + 8], 0
jne 0x10013d75
mov ecx, dword [eax + 8]
push 0x1006a9d0
push ecx
call fcn.1005075f
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10013d75
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.1005067e
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10013da4
mov eax, dword [esi + 8]
test eax, eax
je 0x10013d9e
push eax
call fcn.1004e195
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret