joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15016d41
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x15016d63
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x15016d63
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x15016d63
ret
cmp word [ebx + 4], 0x14c
jne 0x15016d63
test word [ebx + 0x16], 2
je 0x15016d63
test word [ebx + 0x16], 0x100
je 0x15016d63
cmp word [ebx + 0x18], 0x10b
jne 0x15016d63
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x15016d63
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x15016def
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x15016d83
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.14ffdcce
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x15016d63
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x15016def
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x15016d63
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x15016d63
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x15016d63
ret
cmp word [ebx + 4], 0x14c
jne 0x15016d63
test word [ebx + 0x16], 2
je 0x15016d63
test word [ebx + 0x16], 0x100
je 0x15016d63
cmp word [ebx + 0x18], 0x10b
jne 0x15016d63
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x15016d63
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x15016def
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x15016d83
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.14ffdcce
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x15016d63
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x15016ea6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x15016eff
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x15016ea6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x15016eb5
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1541cb58
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x15016f06
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.14ffdd7c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x15016fa5
add edi, 4
add eax, 2
dec ecx
jne 0x15016eeb
call 0x15016f52
loope 0x15016f48
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x15016fa2
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x15016fb3
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x15016f66
cmp eax, ecx
ja 0x15016f66
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x15016ff0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x15016fe6
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.14ffe25b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x15016eb5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x15016eff
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x15016ea6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x15016eb5
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1541cb58
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x15016f06
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.14ffdd7c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x15016fa5
add edi, 4
add eax, 2
dec ecx
jne 0x15016eeb
call 0x15016f52
loope 0x15016f48
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x15016fa2
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x15016fb3
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x15016f66
cmp eax, ecx
ja 0x15016f66
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x15016ff0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x15016fe6
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.14ffe25b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403430
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040634c
test esi, esi
jne 0x403468
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406488
jmp 0x403486
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403314
mov edi, eax
test esi, esi
je 0x403486
cmp dword [ebx], 0
je 0x403486
dec esi
jmp 0x40346f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4034b8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5c2008], 0x8088405
inc edx
mov dword [ebx + 0x5c2008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403c48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5c2024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ce0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403cc0
xor eax, eax
push ebp
push 0x403cb9
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 0x403d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403cc0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x5c2024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5c2024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4044c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040477c
mov byte [esp], al
cmp byte [esp], 0
jne 0x404651
test edi, edi
je 0x404651
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404588
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x404563
cmp edi, 0xffffffff
je 0x404527
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404527
mov byte [esp], 0
jmp 0x404651
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404563
test ebx, ebx
jne 0x40455c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013e8
test eax, eax
jne 0x40455c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404651
pause
dec ebp
test ebp, ebp
jg 0x40450c
cmp edi, 0xffffffff
je 0x404588
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404586
mov byte [esp], 0
jmp 0x404651
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4044d6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404588
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004046c4
mov edx, eax
mov ebx, dword [0x5d58cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4045ef
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4045ed
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4045ef
xor edi, edi
cmp byte [esp], 0
je 0x404618
mov ebx, dword [esi]
test bl, 1
jne 0x404631
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x4045f5
mov byte [esp + 1], 1
jmp 0x404631
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404618
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4045a2
cmp byte [esp], 0
je 0x404651
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405298
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d5054], 0
je 0x4052f9
cmp word [0x5d5330], 0xd7b2
jne 0x4052c1
cmp dword [0x5d5338], 0
jbe 0x4052c1
mov eax, 0x5d532c
call dword [0x5d5348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x405324
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5c2030], 0
jne 0x405315
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4054c4
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 [0x5c2034], 0
je 0x4054ea
mov edx, esi
mov eax, ebx
call dword [0x5c2034]
jmp 0x4054f9
mov eax, 8
call fcn.0040305c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5d5055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40548c
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 0x408b44
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a9fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x5d7b60
push 0xa
push 0x40aa90
mov eax, dword [0x5d7b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40aa20
call fcn.00416c6c
push ebx
mov eax, dword [0x5d7b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40aa37
call fcn.00416c6c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40aa49
call fcn.00416c6c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5d7b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5d7b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5d7b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5d7b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5d7b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x5d7b78], edx
pop esi
pop ebx
ret

Function at 0x40c858
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c901
test eax, edx
je 0x40c904
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c881
push edx
mov edx, eax
mov eax, esp
call fcn.00406568
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c897
push eax
lea eax, [esp + 8]
call fcn.00406568
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c8a6
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c8cd
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40c8e7
add ecx, 4
js 0x40c8be
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c8e4
push eax
mov eax, ecx
mov edx, 2
call fcn.00405564
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c8cb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c8cd
xor eax, eax
ret
test eax, eax
je 0x40c914
test edx, edx
jne 0x40c868
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004063d8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d8ba
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40d8db
cmp ebx, 3
je 0x40d8db
cmp ebx, 0x7b
je 0x40d8db
mov eax, esi
call fcn.0040d85c
test al, al
jne 0x40d8df
xor eax, eax
jmp 0x40d8e1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004063d8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d8fd
test al, 0x10
jne 0x40d901
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40da1c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004063d8
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40da30
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004063d8
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40da52
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x413c98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413cd1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406488
jmp 0x413cda
mov eax, ebx
mov edx, esi
call fcn.0040634c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413ce4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413d06
movzx eax, word [esp]
jmp 0x413d08
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4145dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x414701
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004143f0
mov esi, eax
mov eax, dword [0x5d4ad4]
cmp byte [eax], 0
je 0x4146a9
mov eax, dword [0x5d45bc]
call fcn.004035c8
call fcn.004031c4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4145b8]
call fcn.00407d64
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41471c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4146e5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5d4518]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5d7b50]
call fcn.00407e58
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414708
lea eax, [ebp - 4]
mov edx, dword [0x4145b8]
call fcn.00407d70
ret
Function at 0x415354
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 0x41542a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004063a0
lea eax, [ebp - 4]
call fcn.00406dbc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004063d8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x415414
mov eax, ebx
call fcn.0040305c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41540d
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.004063d8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4153f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41543c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4153f7
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 0x415414
mov eax, dword [ebp - 0x10]
call fcn.00403078
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415431
lea eax, [ebp - 4]
call fcn.0040633c
ret

Function at 0x416ae4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405910
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x416a8e
mov eax, edi
add eax, eax
call fcn.0040305c
mov esi, eax
jmp 0x416a90
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x416ac9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x416ab3
mov eax, esp
cmp esi, eax
je 0x416ad6
mov eax, esi
call fcn.00403078
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x416b10
cmp bl, 0
je 0x416b0c
cmp bl, 0x41
jl 0x416b07
cmp bl, 0x5a
jg 0x416b07
or bl, 0x20
xor al, bl
inc esi
jmp 0x416aeb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416a50
Function at 0x41736c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.0040634c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004063d8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4173b3
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406488
jmp 0x4173cc
mov edx, ebx
dec edx
mov eax, esi
call fcn.004066c8
push ebx
mov eax, dword [esi]
call fcn.004063d8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x418990
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x418a87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d460c]
cmp dword [eax], 6
jl 0x418a6c
call fcn.00418638
mov ebx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040d120
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x418aa0
call fcn.00406820
mov eax, dword [ebp - 4]
call fcn.004063d8
push eax
call sub.kernel32.dll_OutputDebugStringW
cmp ebx, 3
jge 0x418a14
mov eax, dword [0x5d460c]
cmp dword [eax], 0xa
jge 0x418a14
cmp dword [0x5c2b7c], 0
je 0x418a01
call dword [0x5c2b7c]
cmp dword [0x5c2b80], 0
je 0x418a6c
push 2
call dword [0x5c2b80]
jmp 0x418a6c
cmp dword [0x5c2b80], 0
je 0x418a27
push 2
call dword [0x5c2b80]
jmp 0x418a6c
xor eax, eax
mov dword [0x5d9db8], eax
push 0x418ae8
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [0x5d9db8], eax
cmp dword [0x5d9db8], 0xffffffff
je 0x418a5b
push 0x418b00
mov eax, dword [0x5d9db8]
push eax
call fcn.0040930c
mov dword [0x5c2b80], eax
cmp dword [0x5c2b80], 0
je 0x418a6c
push 2
call dword [0x5c2b80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a8e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406344
ret

Function at 0x4327b4
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.00432430
dec esi
jne 0x4327d6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x433994
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5d9ea0
cmp dword [edi], 0
jne 0x433a10
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5d9e9c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5c2e4c
mov ecx, 2
call fcn.00403214
mov edx, 0x43396c
lea eax, [esi + 5]
call fcn.0043398c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043398c
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 0x4339e5
mov dword [0x5d9e9c], 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