joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x46b00c], esi
jne 0x4542be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x452c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46b00c], eax
cmp eax, esi
je 0x45e4ec
push 0xffffffffffffffff
push dword [0x46b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x46b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x46b018], esi
jl 0x45e50a
pop esi
leave
ret

Function at 0x454441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x454498
call fcn.00452712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x454490
cmp ecx, 0xffffffff
je 0x454490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x454489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x454489
cmp edx, 0x10000000
jae 0x454489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x45e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00452757
ret 4

Function at 0x45681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x46b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x456933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x45ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.004521cb
test eax, eax
jl 0x456932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x4568c3
push 0x456994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00452436
test eax, eax
jl 0x456932
push 0x456980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00452436
test eax, eax
jl 0x456932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x45ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x456970
push eax
call edi
push 0x45695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x456948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x456940
cmp dword [esi + 0x34], 0
je 0x456940
test eax, eax
je 0x456940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004520d4
leave
ret
mov eax, 0x8007007f
jmp 0x456932
Function at 0x4571f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x46608c
call fcn.004539dd
lea ecx, [ebp - 0x34]
call fcn.00456c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0045758b
test eax, eax
jl 0x45722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004572a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x457298
cmp ax, si
jne 0x45e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00451451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0045758b
mov esi, eax
test esi, esi
jl 0x457280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004572a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0045760b
mov eax, esi
call fcn.00452b9f
ret

Function at 0x45791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x45dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x457900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x4579a8
push 1
lea ecx, [ebp - 0x20]
call fcn.004579e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x4578ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.004571e0
cmp esi, ebx
jl 0x4579a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x457992
push 0x24
mov eax, 0x465c85
call fcn.004526dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x457854
push 1
lea ecx, [ebp - 0x20]
call fcn.004579e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x453984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x4579a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x4579d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00457455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.004571e0
mov eax, esi
call fcn.00451390
ret 0xc
Function at 0x457b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x465fc0
call fcn.004539dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00457c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x457b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x457b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x457b5b
inc esi
cmp esi, edi
jb 0x457b46
cmp esi, edi
jb 0x457c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x457c0e
cmp word [edx], 0x30
jne 0x457b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x457b6f
cmp eax, edi
jae 0x457c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x457b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x457c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x457c03
movzx eax, ax
movzx eax, ax
push eax
push 0x457c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00451451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00456c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0045760b
mov eax, dword [ebp - 0x54]
call fcn.00452b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x457bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x457be9
Function at 0x457f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x466a7d
call fcn.00451350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x458046
push 1
call fcn.0045227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x45803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004513e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x457fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.004521cb
mov ebx, eax
test ebx, ebx
jl 0x458024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00452436
mov ebx, eax
test ebx, ebx
jl 0x458024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x458024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x457ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x45f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x458024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x45f353
cmp dword [ebp - 0x14], 0
je 0x458033
push dword [ebp - 0x14]
call fcn.004513c0
pop ecx
push dword [ebp - 0x18]
call fcn.004513c0
pop ecx
mov eax, ebx
call fcn.00451390
ret 4
mov ebx, 0x80070057
jmp 0x45803c

Function at 0x4585f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x46b004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x458684
cmp eax, 0xffffffff
je 0x458684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x458684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.004585b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00458692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45f2da
cmp esi, dword [ebp - 0xc]
jne 0x45f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004520d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x45866d
Function at 0x4588ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x466be9
call fcn.004520e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004513e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x458999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x4589a4
push esi
push edi
call fcn.00451451
add esp, 0x14
mov eax, edi
call fcn.00452126
ret 4
Function at 0x460d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x460dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x460db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x460dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x460da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40327c
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.00404abc
test esi, esi
jne 0x4032b2
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.00404bac
jmp 0x4032d0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403180
mov edi, eax
test esi, esi
je 0x4032d0
cmp dword [ebx], 0
je 0x4032d0
dec esi
jmp 0x4032b9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4039ec
Capabilities:
Query or enumerate registry value

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

Function at 0x404888
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46104c], 0
je 0x4048e9
cmp word [0x461220], 0xd7b2
jne 0x4048b1
cmp dword [0x461228], 0
jbe 0x4048b1
mov eax, 0x46121c
call dword [0x461238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404910
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x404905
push 0
push 0x45f75c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x45f034], 0
je 0x404a66
mov edx, esi
mov eax, ebx
call dword [0x45f034]
jmp 0x404a75
mov eax, 8
call fcn.00402e90
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x46104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a08
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408884
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4088d6
test eax, edx
je 0x4088d9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408899
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4088bf
add ecx, 4
js 0x4088af
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4088bc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4088e5
test edx, edx
jne 0x40888c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f4c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4090f5
test al, 0x10
je 0x4090f9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f4c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409119
test al, 0x10
jne 0x40911d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bd04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bd3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bac
jmp 0x40bd46
mov eax, ebx
mov edx, esi
call fcn.00404b10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd50
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bd72
movzx eax, byte [esp]
jmp 0x40bd74
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c404
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c27c
mov eax, dword [0x460acc]
cmp byte [eax], 0
je 0x40c480
mov eax, dword [0x4608d0]
call fcn.004033b4
call fcn.00402fec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409378
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c4c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c4b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x460878]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4637f8]
call fcn.00405e7c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40cd88
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ce5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404b54
lea eax, [ebp - 4]
call fcn.00404fa4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f4c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ce48
mov eax, ebx
call fcn.00402e90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ce41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f4c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ce2b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ce70
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ce2b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce48
mov eax, dword [ebp - 0x10]
call fcn.00402eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce65
lea eax, [ebp - 4]
call fcn.00404abc
ret

Function at 0x40e110
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404abc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404f4c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40e155
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404bac
jmp 0x40e16e
mov edx, ebx
dec edx
mov eax, esi
call fcn.004051dc
push ebx
mov eax, dword [esi]
call fcn.00404f4c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41e1d8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041df14
dec esi
jne 0x41e1fa
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41f36c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4659f0
cmp dword [edi], 0
jne 0x41f3e8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4659ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45faf0
mov ecx, 2
call fcn.00403080
mov edx, 0x41f344
lea eax, [esi + 5]
call fcn.0041f364
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f364
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f3bd
mov dword [0x4659ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421b0c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00421540
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404f4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x421b6b
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4609f0]
mov dl, 1
mov eax, dword [0x421438]
call fcn.0040c5c4
call fcn.00404450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x421b74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404f4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x421bcc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x460bfc]
mov dl, 1
mov eax, dword [0x421438]
call fcn.0040c5c4
call fcn.00404450
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00421570
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x422a28
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422a2e
ret