joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573acb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004a1a50
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1018], ebx
call fcn.005660e6
push ebx
lea esi, [eax - 1]
mov dword [ebp - 0x1020], esi
call fcn.0057f8c3
pop ecx
pop ecx
test esi, esi
jne 0x573b41
push 1
push ebx
push edi
call fcn.00574155
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov ebx, eax
inc esi
push dword [ebp - 0x1018]
call fcn.00535abf
pop ecx
test eax, eax
je 0x573c9d
push 0
push 0
push edi
call fcn.00567746
jmp 0x573c98
push str.too_many_arguments
lea eax, [esi + 0x14]
push eax
push edi
call fcn.005675b8
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp - 0x1020]
add esp, 0xc
inc ebx
mov dword [ebp - 0x101c], esi
dec eax
mov dword [ebp - 0x1020], eax
test ebx, ebx
je 0x573b1e
push esi
push edi
call fcn.00566e9c
pop ecx
pop ecx
cmp eax, 3
jne 0x573c0e
push esi
push edi
call fcn.00567445
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x573bbe
mov ebx, dword [ebp - 0x1018]
push ebx
call fcn.00535f10
mov esi, eax
push ebx
push esi
call fcn.00536669
push 0x5bd344
push edi
call fcn.005665ac
xor ebx, ebx
add esp, 0x14
cmp esi, 0xffffffff
setne bl
jmp 0x573c06
lea eax, [ebp - 0x1014]
push eax
push edi
call fcn.00567399
lea eax, [ebp - 0x1014]
push esi
push eax
call fcn.00567ccf
push dword [ebp - 0x1018]
push esi
push 1
push eax
call fcn.00536a71
mov esi, eax
lea eax, [ebp - 0x1014]
add dword [ebp - 0x100c], esi
push eax
call fcn.00567d4e
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb ebx, ebx
neg ebx
mov esi, dword [ebp - 0x101c]
jmp 0x573c72
push 0
push esi
push edi
call fcn.005674a5
add esp, 0xc
cmp byte [eax], 0x2a
jne 0x573c20
inc eax
movsx eax, byte [eax]
sub eax, 0x4c
je 0x573c5f
sub eax, 0x15
je 0x573c4c
sub eax, 0xb
je 0x573c48
dec eax
sub eax, 1
jne 0x573c8c
push dword [ebp - 0x1018]
push edi
call fcn.0057426a
pop ecx
pop ecx
jmp 0x573c70
push 1
jmp 0x573c61
push dword [ebp - 0x1018]
push edi
call fcn.005740e1
pop ecx
xor ebx, ebx
pop ecx
inc ebx
jmp 0x573c72
push 0
push dword [ebp - 0x1018]
push edi
call fcn.00574155
add esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x1020]
inc esi
mov dword [ebp - 0x101c], esi
test eax, eax
jne 0x573b65
jmp 0x573b1e
push str.invalid_format
push esi
push edi
call fcn.005672bc
add esp, 0xc
jmp 0x573cb7
test ebx, ebx
jne 0x573cb2
push 0xfffffffffffffffe
push edi
call fcn.00566b67
push edi
call fcn.0056657a
add esp, 0xc
sub esi, dword [ebp + 0x10]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x573cc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.005660e6
mov edi, dword [ebp + 0x10]
pop ecx
push 1
pop esi
sub eax, edi
je 0x573d8e
dec eax
push edi
push ebx
mov dword [ebp - 4], eax
call fcn.00566e9c
pop ecx
pop ecx
cmp eax, 3
jne 0x573d61
push edi
push ebx
call fcn.005661a1
pop ecx
pop ecx
push 0
push edi
push ebx
test eax, eax
je 0x573d23
call fcn.00566cf3
push edx
push eax
push str._lld
push dword [ebp + 0xc]
call fcn.00565298
add esp, 0x1c
jmp 0x573d3e
call fcn.00566dbc
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 0xc]
call fcn.00565298
add esp, 0x10
test esi, esi
je 0x573d46
test eax, eax
jg 0x573d89
xor esi, esi
mov eax, dword [ebp - 4]
inc edi
test eax, eax
jne 0x573ce7
test esi, esi
jne 0x573d8e
push esi
push esi
push ebx
call fcn.00567746
add esp, 0xc
jmp 0x573d91
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
call fcn.005674a5
add esp, 0xc
test esi, esi
je 0x573d46
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.0053630b
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jne 0x573d46
xor esi, esi
inc esi
jmp 0x573d48
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5740e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004a1a50
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1014]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
push eax
call fcn.00567399
pop ecx
pop ecx
mov edi, 0x1000
lea eax, [ebp - 0x1014]
push edi
push eax
call fcn.00567ccf
push esi
push edi
push 1
push eax
call fcn.00536a71
add dword [ebp - 0x100c], eax
add esp, 0x18
cmp eax, edi
je 0x574114
lea eax, [ebp - 0x1014]
push eax
call fcn.00567d4e
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x57dee1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5fb84c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x5fb83c
jne 0x57df6b
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0052edb0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x444]
call fcn.00405cc0
push eax
mov ecx, edi
call fcn.00405c70
push 0
push 1
lea ecx, [ebp - 0x444]
call fcn.00406590
push ebx
lea ecx, [ebp - 0x42c]
call fcn.00405d40
cmp dword [0x5fb850], 8
lea ecx, [ebp - 0x444]
cmovae edi, dword [0x5fb83c]
push edi
call fcn.00405cc0
push str._install_path_
lea ecx, [ebp - 0x45c]
call fcn.00405cc0
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.0057de2c
add esp, 0xc
lea ecx, [ebp - 0x45c]
xor ebx, ebx
push ebx
push 1
call fcn.00406590
push ebx
push 1
lea ecx, [ebp - 0x444]
call fcn.00406590
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0052edb0
add esp, 0xc
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00405cc0
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x45d], 0x5c
mov byte [ebp - 0x45e], 0x2f
jb 0x57e03e
mov ecx, dword [esi]
jmp 0x57e040
mov ecx, esi
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
jb 0x57e050
mov ecx, dword [esi]
jmp 0x57e052
mov ecx, esi
lea edx, [ebp - 0x45d]
push edx
lea edx, [ebp - 0x45e]
push edx
push eax
push ecx
call fcn.0051fd5a
add esp, 0x10
lea ecx, [ebp - 0x42c]
push ebx
push 1
call fcn.00406590
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x57e08b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x22c
push 0
push eax
call fcn.0052edb0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x57e12a
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x57e11f
cmp dword [edi + 0x14], 8
jb 0x57e0f0
mov eax, dword [edi]
jmp 0x57e0f2
mov eax, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x57e112
lea eax, [ebp - 0x228]
mov ecx, ebx
push eax
call fcn.0057eaab
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x57e0e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret

Function at 0x57e13b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x260]
push 0x22c
xor ebx, ebx
push ebx
push eax
call fcn.0052edb0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x57e17e
xor al, al
jmp 0x57e1ed
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x57e1e0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405cc0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041b1a0
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.004259a0
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00406a10
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00406590
lea eax, [ebp - 0x260]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x57e197
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x57f2b5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
push ecx
push str.kernel32.dll
mov dword [ebx], ecx
mov dword [eax], ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x57f32a
push esi
push edi
call fcn.004a0f0b
pop ecx
mov esi, eax
xor eax, eax
push esi
push edi
push eax
push str.kernel32.dll
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x57f322
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x5bede8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x57f322
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call fcn.004a0cd6
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57f330
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
je 0x57f352
cmp word [ebp - 0x24], 6
je 0x57f352
xor al, al
jmp 0x57f354
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4030bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4030ca
pop dword [ebp - 0x2c]
mov eax, 0x69141937
add eax, 0x972c1793
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xa2fb2561
add dword [ebp - 0x3c], 0xab571fea
mov dword [ebp - 0x38], 0xa38680e5
sub dword [ebp - 0x38], 0x715334a0
mov dword [ebp - 0x34], 0xbd1db56d
add dword [ebp - 0x34], 0x8f2e8ec1
mov dword [ebp - 0x30], 0x2e2272b
add dword [ebp - 0x30], 0xfd1dd8d5
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xdc1d8426
sub dword [ebp - 0x3c], 0x67ab1ad0
mov dword [ebp - 0x38], 0x8a07be8b
add dword [ebp - 0x38], 0xb764a2ea
mov dword [ebp - 0x34], 0x28bac23f
sub dword [ebp - 0x34], 0xc54b55d3
mov dword [ebp - 0x30], 0x859c1c3c
sub dword [ebp - 0x30], 0x859c1c3c
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x3f9ff4b4
sub eax, 0x3f5f73b4
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x36718
push 0
call eax
mov ecx, 0x45d3
mov esi, eax
mov edi, 0xbe2c28cc
sub edi, 0xbde724cc
add edi, dword [ebp - 0x2c]
mov edx, 0xd3c62f47
sub dword [ebp - 0x28], esi
mov ebx, dword [edi]
sub ebx, edx
xor dword [ebp - 0x28], esi
mov dword [esi], ebx
xor dword [ebp - 0x10], edx
add esi, 0xb1a7d561
sub esi, 0xb1a7d55d
add edi, 0xdb1a3064
add edi, 0x24e5cfa0
loop 0x4031db
add eax, 0x16358812
sub eax, 0x16347df3
xor ebx, ebx
add ebx, eax
add eax, 0x79cc8ef4
sub eax, 0x79cc8eef
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4b6b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x74000]
push edi
jmp 0x4b6b9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b6ba1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6b90
mov eax, 1
add ebx, ebx
jne 0x4b6bb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b6bc4
jne 0x4b6be3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6be3
dec eax
add ebx, ebx
jne 0x4b6bd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b6ba8
add ebx, ebx
jne 0x4b6bdf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b6c35
xor ecx, ecx
sub eax, 3
jb 0x4b6bfb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b6c6a
sar eax, 1
mov ebp, eax
jmp 0x4b6c06
add ebx, ebx
jne 0x4b6c06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6bd4
inc ecx
add ebx, ebx
jne 0x4b6c14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6bd4
add ebx, ebx
jne 0x4b6c21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b6c16
jne 0x4b6c32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b6c16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b6c54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b6c46
jmp 0x4b6b96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b6c54
add edi, ecx
jmp 0x4b6b96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b6c72
cmp byte [edi], 0x11
jne 0x4b6c72
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 al, bl
loop 0x4b6c77
lea edi, [esi + 0xb2000]
mov eax, dword [edi]
or eax, eax
je 0x4b6cef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbae4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbafa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b6ca4
mov ecx, edi
jns 0x4b6cd3
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 + 0xbafa4]
or eax, eax
je 0x4b6ce9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b6cc1
call dword [esi + 0xbafb4]
mov ebp, dword [esi + 0xbafa8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b6d23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x40333c
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.00404d5c
test esi, esi
jne 0x403372
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.00404e4c
jmp 0x403390
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403240
mov edi, eax
test esi, esi
je 0x403390
cmp dword [ebx], 0
je 0x403390
dec esi
jmp 0x403379
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403b50
Capabilities:
Query or enumerate registry value

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

Function at 0x404b08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50b04c], 0
je 0x404b69
cmp word [0x50b220], 0xd7b2
jne 0x404b31
cmp dword [0x50b228], 0
jbe 0x404b31
mov eax, 0x50b21c
call dword [0x50b238]
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 0x404b90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x502030], 0
jne 0x404b85
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ce0
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 [0x502034], 0
je 0x404d06
mov edx, esi
mov eax, ebx
call dword [0x502034]
jmp 0x404d15
mov eax, 8
call fcn.00402f50
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ca8
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 0x4095ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4095fe
test eax, edx
je 0x409601
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4095c1
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 0x4095e7
add ecx, 4
js 0x4095d7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4095e4
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 0x40960d
test edx, edx
jne 0x4095b4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051ec
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a22d
test al, 0x10
je 0x40a231
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a238
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.004051ec
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a25a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d634
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 0x40d66d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e4c
jmp 0x40d676
mov eax, ebx
mov edx, esi
call fcn.00404db0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d680
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 0x40d6a2
movzx eax, byte [esp]
jmp 0x40d6a4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40dd34
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40dbac
mov eax, dword [0x50a924]
cmp byte [eax], 0
je 0x40ddb0
mov eax, dword [0x50a544]
call fcn.004034c8
call fcn.004030ac
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.0040a44c
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 0x40ddf8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dde6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x50a4ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50d7f8]
call fcn.004065d0
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 0x40e6d4
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 0x40e7aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404df4
lea eax, [ebp - 4]
call fcn.00405244
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004051ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e794
mov eax, ebx
call fcn.00402f50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e78d
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.004051ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e777
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e7bc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e777
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 0x40e794
mov eax, dword [ebp - 0x10]
call fcn.00402f6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7b1
lea eax, [ebp - 4]
call fcn.00404d5c
ret

Function at 0x422cbc
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.004229cc
dec esi
jne 0x422cde
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret