joyce8/EMBER2024-capa huggingface dataset:
Function at 0x703e0f40
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x703e0f74
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x70f0bba0], eax
call fcn.703e22c0
test eax, eax
sete al
movzx eax, al
mov dword [0x7047ca14], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x703e0f63

Function at 0x703e1020
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
mov eax, dword [edx]
mov dword [esp + 0x28], esi
jmp 0x703e104c
mov dword [0x70f0bba4], edx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x703e1110
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
call eax
test eax, eax
jne 0x703e1170
test esi, esi
je 0x703e10cb
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x703e1180
cmp eax, 8
jne 0x703e1170
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x7047ca14]
test eax, eax
js 0x703e1150
test eax, eax
je 0x703e1040
mov eax, dword [0x70f0bba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x703e1046
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x703e1046
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x28]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
test eax, eax
jne 0x703e1170
add esp, 0x3c
mov al, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call fcn.703e0f80
mov eax, dword [0x7047ca14]
mov edx, dword [esp + 0x2c]
jmp 0x703e10d8
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x703e1200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x7047ca14]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x703e1280
test eax, eax
jne 0x703e1230
mov eax, dword [0x70f0bba4]
mov dword [0x70f0bba4], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x70f0bba0]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x70f0bba0]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x703e1225
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.703e0f80
mov eax, dword [0x7047ca14]
jmp 0x703e1214

Function at 0x703e1290
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x7047ca14]
test eax, eax
js 0x703e12e0
test eax, eax
jne 0x703e12b2
mov dword [0x70f0bba4], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x70f0bba0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x703e12ad
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
pop ebx
jmp eax
call fcn.703e0f80
mov eax, dword [0x7047ca14]
jmp 0x703e12a3

Function at 0x703e13f0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x7047ca14]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x703e14e0
test eax, eax
mov esi, dword [0x70f0bba4]
jne 0x703e1471
test esi, esi
mov dword [esp + 0x2c], esi
je 0x703e1465
lea ebx, [esp + 0x2c]
mov eax, esi
nop
mov eax, dword [eax + 0x18]
test eax, eax
je 0x703e1457
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x703e14a0
cmp eax, 8
jne 0x703e14d0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x703e1420
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x70f0bba0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x703e1411
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], 0
mov edx, ebx
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.703e0ea0
cmp eax, 7
jne 0x703e146a
mov eax, ebx
call fcn.703e1190
mov esi, esi
lea edi, [edi]
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.703e0f80
mov eax, dword [0x7047ca14]
jmp 0x703e1407
Function at 0x703e1590
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x7047ca14]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x703e1605
test edx, edx
mov eax, dword [0x70f0bba4]
jne 0x703e15dd
mov ecx, dword [ebx + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, esi
test ecx, ecx
jne 0x703e15cf
call fcn.703e0ea0
cmp eax, 7
je 0x703e15d6
call sub.msvcrt.dll_abort
call fcn.703e1020
jmp 0x703e15c5
mov eax, esi
call fcn.703e1190
mov esi, dword [0x70f0bba0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x703e15ad
call fcn.703e0f80
mov edx, dword [0x7047ca14]
jmp 0x703e15a4

Function at 0x703e1620
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x703e1660
mov edx, dword [0x7047ca14]
test edx, edx
js 0x703e16b0
test edx, edx
mov eax, dword [0x70f0bba4]
jne 0x703e1680
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.703e1020
cmp eax, 7
je 0x703e1670
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.703e13f0
add esp, 0x20
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
call fcn.703e1190
lea esi, [esi]
mov esi, dword [0x70f0bba0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x703e1644
call fcn.703e0f80
mov edx, dword [0x7047ca14]
jmp 0x703e163b

Function at 0x703e1880
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x703e18c0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x703e18e5
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
jmp eax
Function at 0x4322a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x43d991
mov dword [esp], eax
mov dword [esp + 4], 0x43d4c4
mov dword [esp + 8], 0x43d4c0
mov dword [esp + 0xc], 0x43d4bc
mov dword [esp + 0x10], 0x43d4b8
mov dword [esp + 0x14], 0x43d4b4
mov dword [esp + 0x18], 0x43d968
mov dword [esp + 0x1c], 0x43d4b0
mov dword [esp + 0x20], 0x43d4ac
mov dword [esp + 0x24], 0x43d9a0
mov dword [esp + 0x28], 0x43d99c
mov dword [esp + 0x2c], 0x43dcc8
mov dword [esp + 0x30], 0x43e61c
mov dword [esp + 0x34], 0x43d4a8
mov dword [esp + 0x38], 0x43d4a4
mov dword [esp + 0x3c], 0x43d4a0
mov dword [esp + 0x40], str.__.___
mov dword [esp + 0x44], 0x43d490
mov dword [esp + 0x48], 0x43d19c
mov dword [esp + 0x4c], 0x43dac4
mov dword [esp + 0x50], str.___
mov dword [esp + 0x54], 0x43e618
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x43d48c
mov dword [esp + 0x64], 0x43d488
mov dword [esp + 0x68], 0x43d998
mov dword [esp + 0x6c], 0x43d484
mov dword [esp + 0x70], 0x43d1a0
mov dword [esp + 0x74], 0x43d18c
mov dword [esp + 0x78], 0x43d16c
mov dword [esp + 0x7c], 0x43d15c
mov dword [esp + 0x80], 0x43d154
mov dword [esp + 0x84], 0x43d14c
mov dword [esp + 0x88], 0x43d144
mov dword [esp + 0x8c], 0x43d198
mov dword [esp + 0x90], 0x43d480
mov dword [esp + 0x94], 0x43d9a4
mov dword [esp + 0x98], 0x43d190
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x43dacc
mov dword [esp + 0xc0], 0x43d228
mov dword [esp + 0xc4], 0x43d20c
mov dword [esp + 0xc8], str.C13ABDEF
mov dword [esp + 0xcc], str.ZYXWVUTSRQPONMLKJIHG
mov dword [esp + 0xd0], 0x43d250
mov dword [esp + 0xd4], str._:_
mov dword [esp + 0xd8], 0x43d164
mov dword [esp + 0xdc], 0x43d22c
mov dword [esp + 0xe0], 0x43d234
mov dword [esp + 0xe4], 0x43d478
mov dword [esp + 0xe8], 0x43d240
mov dword [esp + 0xec], 0x43d224
cmp cl, 0x3c
jae 0x4324bd
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
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 0x10001930
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [0x10007334], 0
jne 0x10001948
mov dword [0x10007334], 1
jmp fcn.10004e04
ret

Function at 0x10001949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call fcn.10001958

Function at 0x100055c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100055d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x100055f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
mov eax, 1
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
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 eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
mov ecx, edi
jns 0x43899b
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 + 0x382b0]
or eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001e49
Capabilities:
Get file version info

Disassembly:
sub esp, 0x218
mov eax, dword [0x100018e0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x224]
push edi
push 0x104
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10001ef2
push esi
push edi
push 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10001ef1
push ebx
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [esp + 0x14]
mov ebx, eax
push ebx
push edi
push ecx
lea edx, [esp + 0x28]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x10001210
push ebx
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x14]
push esi
mov dword [ebp], eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, 1
pop ebx
pop esi
mov ecx, dword [esp + 0x21c]
pop edi
pop ebp
xor ecx, esp
call fcn.100070b4
add esp, 0x218
ret 8

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4
Function at 0x100063e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x104
mov eax, dword [0x100018e0]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x2270], 0
push edi
mov edi, dword [esp + 0x118]
jbe 0x1000643d
push 0x100
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x2008]
push ecx
call fcn.10006706
mov eax, dword [esi + 0x2270]
push 0x100
lea edx, [esp + 0x14]
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esi + 0x2240]
test eax, eax
je 0x10006450
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ebp, dword [esi + 0x2240]
push 5
push 0xca
push edi
or ebx, 0xffffffff
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x10006493
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x10006493
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
je 0x10006493
push esi
push 0x100060b4
push ebp
push eax
push edi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov ebx, eax
mov esi, dword [esi + 0x2240]
test esi, esi
je 0x100064a6
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100070b4
add esp, 0x104
ret 4
Function at 0x1000694d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10006aab
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x10006aab
mov esi, dword [ebp]
test esi, esi
je 0x10006aab
push ebx
mov ebx, dword [esp + 0x20]
cmp ebx, 1
jne 0x1000698e
cmp esi, 2
jae 0x1000698e
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push edi
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x10006aa0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x100069db
cmp ebx, 1
jne 0x100069c8
cmp ecx, 2
je 0x100069e4
pop ebx
pop edi
mov dword [esp + 0x1c], 0x65d
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
ret 0x18
cmp ebx, 1
jne 0x10006aa0
mov eax, dword [ebp]
cmp eax, esi
jae 0x100069f9
shr eax, 1
mov word [edi + eax*2], 0
mov ecx, dword [esp + 0x28]
jmp 0x10006a04
mov edx, esi
shr edx, 1
mov word [edi + edx*2 - 2], 0
cmp ecx, 2
jne 0x10006aa0
push esi
call dword [sym.imp.msvcr80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10006a29
pop ebx
pop edi
pop esi
mov eax, 0xe
pop ebp
ret 0x18
shr esi, 1
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x10006a82
cmp esi, eax
lea ecx, [eax + eax]
mov dword [ebp], ecx
jae 0x10006a64
push ebx
mov word [edi], 0
mov dword [esp + 0x28], 0xea
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
push esi
push edi
push ebx
call dword [sym.imp.MSO.dll_Ordinal_6877]
push ebx
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
mov word [edi], 0
push ebx
mov dword [ebp], 0
mov dword [esp + 0x28], 0x57
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
mov eax, dword [esp + 0x24]
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18
Function at 0x100070b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100018e0]
jne 0x1000745e
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x100099a8], eax
mov dword [0x100099a4], ecx
mov dword [0x100099a0], edx
mov dword [0x1000999c], ebx
mov dword [0x10009998], esi
mov dword [0x10009994], edi
mov word [0x100099c0], ss
mov word [0x100099b4], cs
mov word [0x10009990], ds
mov word [0x1000998c], es
mov word [0x10009988], fs
mov word [0x10009984], gs
pushfd
pop dword [0x100099b8]
mov eax, dword [ebp]
mov dword [0x100099ac], eax
mov eax, dword [ebp + 4]
mov dword [0x100099b0], eax
lea eax, [ebp + 8]
mov dword [0x100099bc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100098f8], 0x10001
mov eax, dword [0x100099b0]
mov dword [0x100098ac], eax
mov dword [0x100098a0], 0xc0000409
mov dword [0x100098a4], 1
mov eax, dword [0x100018e0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000942c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100098f0], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10001920
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100098f0], 0
jne 0x1000754e
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x404a6b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x404add
push edi
push 0x3e
call fcn.00405b16
mov edi, eax
test edi, edi
jne 0x404aa8
mov eax, 0xc000009a
jmp 0x404adc
push esi
mov esi, ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x404ad3
push esi
push 0x40115c
push 0x1f
push edi
call fcn.00409079
add esp, 0x10
push edi
call fcn.00404735
test eax, eax
jns 0x404acd
mov ebx, eax
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x404ab0
push edi
call fcn.00405b38
mov eax, ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408e85
leave
ret

Function at 0x404aef
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x401188
lea eax, [ebp - 0xc]
push 3
push eax
call fcn.0040909a
add esp, 0xc
push 0x41
pop eax
mov word [ebp - 0xc], ax
push 0x106
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x404b5a
mov ecx, dword [ebp - 0xc]
call fcn.004068d7
cmp eax, 0xffffffff
je 0x404b78
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push eax
call fcn.00404813
test eax, eax
js 0x404b6c
mov ax, word [ebp - 0xc]
inc ax
mov word [ebp - 0xc], ax
cmp ax, 0x5a
jbe 0x404b1e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e85
leave
ret
mov eax, 0xc00000ef
jmp 0x404b6c