joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44064d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4406b8
push 0x3d
push dword [ebp + 8]
call fcn.0044082d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4406b8
cmp dword [ebp + 8], esi
je 0x4406b8
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x45984c]
cmp eax, dword [0x459850]
jne 0x44069e
mov edi, eax
call fcn.004405ec
mov dword [0x45984c], eax
cmp eax, ebx
jne 0x4406f7
cmp dword [ebp + 0xc], ebx
je 0x4406c0
cmp dword [0x459854], ebx
je 0x4406c0
call fcn.0044018e
test eax, eax
je 0x4406f7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4407fb
push 4
call fcn.00437c6c
cmp eax, ebx
pop ecx
mov dword [0x45984c], eax
je 0x4406b8
mov dword [eax], ebx
cmp dword [0x459854], ebx
jne 0x4406f7
push 4
call fcn.00437c6c
cmp eax, ebx
pop ecx
mov dword [0x459854], eax
je 0x4406b8
mov dword [eax], ebx
mov ebx, dword [0x45984c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0044059f
mov edi, eax
test edi, edi
pop ecx
jl 0x440750
cmp dword [ebx], 0
je 0x440750
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00437bc2
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x440738
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x440786
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x44072f
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0043a4d8
test eax, eax
pop ecx
pop ecx
je 0x440786
jmp 0x440781
cmp dword [ebp - 4], 0
jne 0x4407f4
test edi, edi
jge 0x440760
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0043a4d8
test eax, eax
pop ecx
pop ecx
je 0x4406b8
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x45984c], eax
cmp dword [ebp + 0xc], 0
je 0x4407dd
push dword [ebp + 8]
call fcn.004379a0
inc eax
inc eax
push eax
call fcn.00437c6c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4407dd
push dword [ebp + 8]
push esi
call fcn.0043c260
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4407d6
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00437bc2
pop ecx
cmp dword [ebp - 4], 0
je 0x4407ec
push dword [ebp + 8]
call fcn.00437bc2
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4406bb
push esi
call fcn.00437bc2
pop ecx
xor eax, eax
jmp 0x4406bb
Function at 0x4045ec
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.00407534
test esi, esi
jne 0x404624
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.00407670
jmp 0x404642
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044d0
mov edi, eax
test esi, esi
je 0x404642
cmp dword [ebx], 0
je 0x404642
dec esi
jmp 0x40462b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406610
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x586050], 0
je 0x406671
cmp word [0x58632c], 0xd7b2
jne 0x406639
cmp dword [0x586334], 0
jbe 0x406639
mov eax, 0x586328
call dword [0x586344]
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 0x40669c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x57f030], 0
jne 0x40668d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40681c
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 [0x57f038], 0
je 0x406842
mov edx, esi
mov eax, ebx
call dword [0x57f038]
jmp 0x406851
mov eax, 8
call fcn.00404218
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x586051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4067e4
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 0x4093e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409547
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407534
cmp si, word [0x57f7e0]
jb 0x40947a
cmp si, word [0x57f9e0]
ja 0x40947a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40947a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x57f7e0]
jae 0x409454
mov edi, ebx
dec edi
jmp 0x409475
cmp si, word [ebx*8 + 0x57f7e0]
jbe 0x409464
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409475
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x57f7e4]
call fcn.004092f0
jmp 0x40947a
cmp edi, dword [ebp - 0xc]
jae 0x40943e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409529
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409529
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040772c
push dword [ebp - 0x164]
push 0x409564
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040772c
push dword [ebp - 0x168]
push 0x409574
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040772c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40954e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040752c
ret
Function at 0x409700
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409805
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x588b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x588b70]
jne 0x40974c
mov eax, esi
mov edx, 0x588b74
mov ecx, 0x55
call fcn.0040772c
push 0x588b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4097ef
push 0x588b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407534
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4097bd
cmp byte [0x588b54], 0
je 0x409782
mov edx, esi
mov eax, ebx
call fcn.004095e0
jmp 0x4097bd
mov edx, esi
mov eax, ebx
call fcn.004093e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4097bd
cmp dword [esi], 0
je 0x4097a6
mov eax, esi
mov edx, 0x409820
call fcn.00407940
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004093e0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407940
push 0x588b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x588b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004075c0
push eax
push 0x588b74
call sub.kernel32.dll_lstrcpynW
push 0x588b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40980c
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x409a44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040751c
xor eax, eax
push ebp
push 0x409c29
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409a84
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409a9e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004075c0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409c13
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ca0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409c13
xor eax, eax
push ebp
push 0x409c0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409848
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409b9c
mov eax, dword [ebp - 0x10]
call fcn.00404218
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004076f0
jmp 0x409be7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409ce0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409be7
mov eax, dword [ebp - 0x10]
call fcn.00404218
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409ce0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004076f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c13
cmp dword [ebp - 8], 0
je 0x409c02
mov eax, dword [ebp - 8]
call fcn.00404234
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c30
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x409ef4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0040751c
mov eax, dword [ebp - 0x21c]
call fcn.0040751c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a093
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407534
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004075c0
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409f94
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409fa6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409f91
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a05f
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409fcf
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409a44
cmp dword [ebp - 0x220], 0
je 0x40a007
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409de8
pop ecx
mov ebx, eax
jmp 0x40a05f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409700
mov eax, dword [ebp - 0x224]
call fcn.00409de8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a052
cmp byte [0x588b54], 0
jne 0x40a052
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409700
mov eax, dword [ebp - 0x228]
call fcn.00409de8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a05f
push ebp
call fcn.00409e98
pop ecx
mov ebx, eax
test bl, bl
je 0x40a075
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040772c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a09a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040752c
ret

Function at 0x40a908
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 0x40df78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x588c58
push 0xa
push 0x40e00c
mov eax, dword [0x588c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40df9c
call fcn.0041cb18
push ebx
mov eax, dword [0x588c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dfb3
call fcn.0041cb18
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dfc5
call fcn.0041cb18
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x588c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x588c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x588c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x588c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x588c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x588c70], edx
pop esi
pop ebx
ret

Function at 0x413298
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413341
test eax, edx
je 0x413344
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4132c1
push edx
mov edx, eax
mov eax, esp
call fcn.00407748
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4132d7
push eax
lea eax, [esp + 8]
call fcn.00407748
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4132e6
movzx eax, word [eax]
sub eax, ecx
jmp 0x41330d
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 0x413327
add ecx, 4
js 0x4132fe
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413324
push eax
mov eax, ecx
mov edx, 2
call fcn.004068bc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41330b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41330d
xor eax, eax
ret
test eax, eax
je 0x413354
test edx, edx
jne 0x4132a8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004075c0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414886
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4148a7
cmp ebx, 3
je 0x4148a7
cmp ebx, 0x7b
je 0x4148a7
mov eax, esi
call fcn.00414828
test al, al
jne 0x4148ab
xor eax, eax
jmp 0x4148ad
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004075c0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4148c9
test al, 0x10
jne 0x4148cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x419590
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 0x4195c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407670
jmp 0x4195d2
mov eax, ebx
mov edx, esi
call fcn.00407534
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4195dc
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 0x4195fe
movzx eax, word [esp]
jmp 0x419600
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419ee0
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 0x41a005
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419cf0
mov esi, eax
mov eax, dword [0x5851f4]
cmp byte [eax], 0
je 0x419fad
mov eax, dword [0x584cfc]
call fcn.00404ad8
call fcn.00404380
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 [0x419eb8]
call fcn.00408ddc
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 0x41a020
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419fe9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x584c48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x588c3c]
call fcn.00408ed0
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 0x41a00c
lea eax, [ebp - 4]
mov edx, dword [0x419eb8]
call fcn.00408de8
ret
Function at 0x41b1e4
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 0x41b2ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407588
lea eax, [ebp - 4]
call fcn.00407fd8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004075c0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41b2a4
mov eax, ebx
call fcn.00404218
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41b29d
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.004075c0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41b287
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41b2cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41b287
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 0x41b2a4
mov eax, dword [ebp - 0x10]
call fcn.00404234
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b2c1
lea eax, [ebp - 4]
call fcn.00407524
ret

Function at 0x41c9c0
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.00406bfc
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 0x41c96a
mov eax, edi
add eax, eax
call fcn.00404218
mov esi, eax
jmp 0x41c96c
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 0x41c9a5
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 0x41c98f
mov eax, esp
cmp esi, eax
je 0x41c9b2
mov eax, esi
call fcn.00404234
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 0x41c9ec
cmp bl, 0
je 0x41c9e8
cmp bl, 0x41
jl 0x41c9e3
cmp bl, 0x5a
jg 0x41c9e3
or bl, 0x20
xor al, bl
inc esi
jmp 0x41c9c7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41c92c
Function at 0x41d220
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.00407534
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004075c0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x41d267
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00407670
jmp 0x41d280
mov edx, ebx
dec edx
mov eax, esi
call fcn.004078a8
push ebx
mov eax, dword [esi]
call fcn.004075c0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x442a3c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x442ada
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x442a9e
cmp byte [ebx + 0x10], 0
jne 0x442a9e
cmp byte [ebx + 0x3c], 0
jne 0x442a9e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x442abf
lea edx, [ebp - 4]
mov eax, dword [0x58515c]
call fcn.0040a894
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x432f4c]
call fcn.0041a04c
call fcn.00406054
jmp 0x442abf
lea edx, [ebp - 8]
mov eax, dword [0x58515c]
call fcn.0040a894
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x432f4c]
call fcn.0041a04c
call fcn.00406054
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442ae1
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040752c
ret

Function at 0x443358
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4433a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004429c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4433bf
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4433c8
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.004429c0
dec esi
jne 0x4433ea
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret