joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bab
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4136c0]
je 0x408bc6
inc edi
cmp edi, 0x17
jb 0x408bb7
cmp edi, 0x17
jae 0x408d46
push ebp
push 3
call fcn.0040cde6
cmp eax, 1
pop ecx
je 0x408d12
push 3
call fcn.0040cde6
test eax, eax
pop ecx
jne 0x408bfa
cmp dword [0x4133e0], 1
je 0x408d12
cmp ebx, 0xfc
je 0x408d45
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x414288
push ebp
call fcn.0040a900
add esp, 0xc
test eax, eax
je 0x408c30
push esi
push esi
push esi
push esi
push esi
call fcn.00406e55
add esp, 0x14
push 0x104
mov esi, 0x4142a1
push esi
push 0
mov byte [0x4143a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408c74
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040a900
add esp, 0xc
test eax, eax
je 0x408c74
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00406e55
add esp, 0x14
push esi
call fcn.0040a7e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408cb9
push esi
call fcn.0040a7e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41459c
push 0x410e1c
sub ecx, eax
push ecx
push eax
call fcn.0040cd33
add esp, 0x14
test eax, eax
je 0x408cb9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00406e55
add esp, 0x14
jmp 0x408cbb
xor esi, esi
push 0x410e18
push ebx
push ebp
call fcn.0040ccc2
add esp, 0xc
test eax, eax
je 0x408cdb
push esi
push esi
push esi
push esi
push esi
call fcn.00406e55
add esp, 0x14
push dword [edi*8 + 0x4136c4]
push ebx
push ebp
call fcn.0040ccc2
add esp, 0xc
test eax, eax
je 0x408cfd
push esi
push esi
push esi
push esi
push esi
call fcn.00406e55
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040cb05
add esp, 0xc
jmp 0x408d45
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x408d45
cmp ebp, 0xffffffff
je 0x408d45
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4136c4]
push dword [esi]
call fcn.0040a7e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40cb05
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409941
xor ebx, ebx
cmp dword [0x414a20], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40cbdb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ccbb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x410fc8
push edi
call esi
cmp eax, ebx
je 0x40ccbb
push eax
call fcn.004098d3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414a20], eax
call esi
push eax
call fcn.004098d3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414a24], eax
call esi
push eax
call fcn.004098d3
mov dword [0x414a28], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004072cd
test eax, eax
pop ecx
pop ecx
je 0x40cba9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406e55
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40cbdb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004098d3
cmp eax, ebx
pop ecx
mov dword [0x414a30], eax
je 0x40cbdb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004098d3
pop ecx
mov dword [0x414a2c], eax
mov eax, dword [0x414a2c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40cc60
cmp dword [0x414a30], ecx
je 0x40cc60
push eax
call fcn.0040994a
push dword [0x414a30]
mov esi, eax
call fcn.0040994a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40cc60
cmp edi, ebx
je 0x40cc60
call esi
cmp eax, ebx
je 0x40cc2d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cc2d
test byte [ebp - 0x18], 1
jne 0x40cc60
lea eax, [ebp - 0x10]
push eax
call fcn.00407304
test eax, eax
pop ecx
je 0x40cc48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406e55
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40cc57
or dword [ebp + 0x10], 0x200000
jmp 0x40cc9b
or dword [ebp + 0x10], 0x40000
jmp 0x40cc9b
mov eax, dword [0x414a24]
cmp eax, dword [ebp - 8]
je 0x40cc9b
push eax
call fcn.0040994a
cmp eax, ebx
pop ecx
je 0x40cc9b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40cc9b
mov eax, dword [0x414a28]
cmp eax, dword [ebp - 8]
je 0x40cc9b
push eax
call fcn.0040994a
cmp eax, ebx
pop ecx
je 0x40cc9b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414a20]
call fcn.0040994a
cmp eax, ebx
pop ecx
je 0x40ccbb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ccbd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c1a4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4122e4], 0
jne 0x40c225
cmp dword [0x412304], 0
jne 0x40c1d4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x412304], eax
test eax, eax
jne 0x40c1d4
push str.GetEnvironmentStrings_failed
call fcn.0040b214
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x412304]
jmp 0x40c1e8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040512c
pop ecx
mov edi, eax
test eax, eax
jne 0x40c1e0
lea edi, [ebp + 1]
push edi
call fcn.00404260
pop ecx
mov ebx, eax
mov dword [0x4122e8], ebx
test ebx, ebx
jne 0x40c212
xor eax, eax
jmp 0x40c2e8
push edi
mov edx, dword [0x412304]
push edx
push ebx
call fcn.00404fdc
add esp, 0xc
jmp 0x40c245
xor esi, esi
mov ebx, dword [0x4122e4]
jmp 0x40c23f
push eax
call fcn.0040512c
pop ecx
test eax, eax
jne 0x40c23b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c22f
lea ebx, [esi + 4]
push 4
mov dword [0x4122ec], ebx
inc ebx
push ebx
call fcn.00404060
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40c268
xor eax, eax
jmp 0x40c2e8
cmp dword [0x4122e4], 0
jne 0x40c299
xor esi, esi
mov ebx, dword [0x4122e8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40c28a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040512c
pop ecx
mov edi, eax
test eax, eax
jne 0x40c280
jmp 0x40c2ca
xor esi, esi
mov ebx, dword [0x4122e4]
mov eax, dword [esp]
mov edi, eax
jmp 0x40c2c4
push eax
call fcn.0040512c
pop ecx
test eax, eax
je 0x40c2b9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40c2bd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c2a8
mov eax, dword [0x4122e4]
test eax, eax
je 0x40c2da
push eax
call fcn.00404270
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4122e4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40895f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edx
sub esi, 0xb37de561
call fcn.00408993
mov esi, ecx
xor dword [eax], edx
push esi
mov ecx, dword [esp]
add esp, 4
inc eax
dec esi
sub esi, ecx
cmp eax, edi
jne fcn.0040895f
sub esi, esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408518
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408518
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408518
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408518
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408518
mov dword [0x41203c], eax
call fcn.00408518
test eax, eax
jge 0x402550
push 8
call fcn.00408518
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408518
pop ecx
push 1
call fcn.00408518
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408518
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408518
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408518
jmp 0x402495

Function at 0x408518
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x408527
pop dword [ebp - 0x1c]
mov eax, 0x408527
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3978c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x4e600684
sub ecx, 0x4e5fbdf3
mov esi, eax
mov edi, 0x9063376b
add edi, 0x6fde0459
add edi, dword [ebp - 0x1c]
mov edx, 0xb8f0bc08
sub edx, 0x235ca257
sub dword [ebp - 8], ecx
mov ebx, dword [edi]
xor dword [ebp - 8], 0x5c61ca02
xor ebx, edx
xor dword [ebp - 0x10], ebx
mov dword [esi], ebx
mov dword [ebp - 0x18], 0x9b317cc0
add esi, 4
add edi, 0x71d7b603
sub edi, 0x71d7b5ff
loop 0x40857c
add eax, 0x11517
xor ebx, ebx
add ebx, eax
add eax, 0xc44e2ed9
sub eax, 0xc44e2ed4
mov ecx, 0xdeb0dbea
sub ecx, 0xde70dbea
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x402f1c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403374
Capabilities:
Query or enumerate registry value

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

Function at 0x40412c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62904c], 0
je 0x40418d
cmp word [0x629220], 0xd7b2
jne 0x404155
cmp dword [0x629228], 0
jbe 0x404155
mov eax, 0x62921c
call dword [0x629238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x460070
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 0x4041b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460034], 0
jne 0x4041a9
push 0
push 0x460068
push 0x460070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40620e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404520
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406215
lea eax, [ebp - 0x10]
call fcn.004042b0
ret

Function at 0x40b4cc
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 0x40b505
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043a0
jmp 0x40b50e
mov eax, ebx
mov edx, esi
call fcn.00404304
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b518
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 0x40b539
mov al, byte [esp]
jmp 0x40b53b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bbd0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba38
mov eax, dword [0x628784]
cmp byte [eax], 0
je 0x40bc4c
mov eax, dword [0x628594]
call fcn.00402d88
call fcn.00402bd4
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.00408c74
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 0x40bc94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc82
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x628544]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x629668]
call fcn.00405614
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 0x40c538
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c60e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404348
lea eax, [ebp - 8]
call fcn.004047c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404770
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5f8
mov eax, ebx
call fcn.00402a48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5f1
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 - 8]
call fcn.00404770
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c5db
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c620
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c5db
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5f8
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c615
lea eax, [ebp - 8]
call fcn.004042b0
ret

Function at 0x40cb7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cbe0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404520
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbe7
lea eax, [ebp - 0xc]
call fcn.004042b0
ret
Function at 0x41e1cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x629888
cmp dword [esi], 0
jne 0x41e272
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x629884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x460400
mov ecx, 2
call fcn.00402c68
mov edx, 0x41e1a4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041e1c4
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041e1c4
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41e239
mov eax, dword [ebp - 8]
mov dword [0x629884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f7a8
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 0x41f7ae
ret

Function at 0x421c74
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x421cc5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421cac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421c9c
jmp 0x421cc5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x421cad
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f580
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404760
xor eax, eax
push ebp
push 0x42f6b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42f683
xor eax, eax
push ebp
push 0x42f67c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404570
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42f651
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42f640
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404570
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404770
mov edx, dword [ebp - 0xc]
pop ecx
call fcn.00402c68
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f647
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x6284e8]
mov dl, 1
mov eax, dword [0x407598]
call fcn.0040bd54
call fcn.00403ca8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f6b7
lea eax, [ebp - 4]
call fcn.004042b0
ret