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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x471c20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45899f
cmp byte [ebx], 0xa
jne 0x45899f
or byte [eax + edi + 0x28], 4
jmp 0x4589a4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x458aa2
mov al, byte [edx]
cmp al, 0x1a
je 0x458a84
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4589d3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4589f8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x458a02
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4589b5
jmp 0x458aa2
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458a7f
cmp dword [ebp - 0xc], 0
je 0x458a7f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x471c20]
test byte [eax + edi + 0x28], 0x48
je 0x458a59
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x458a44
mov byte [esi], dl
jmp 0x458a55
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x471c20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x458aa2
cmp byte [ebp - 1], 0xa
jne 0x458a68
cmp esi, ebx
jne 0x458a68
mov byte [esi], 0xa
jmp 0x458aa1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045690a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x458aa2
mov byte [esi], 0xd
jmp 0x458aa1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x471c20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x458a9e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x458aa2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x458aab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x471c20]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x458aee
cmp word [esi], dx
jne 0x458aee
or byte [edi + eax + 0x28], 4
jmp 0x458af3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x458c46
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x458c26
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x458b35
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x458b6b
cmp eax, edx
jae 0x458b77
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x458b0d
jmp 0x458c46
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458c22
cmp dword [ebp - 0x14], 0
je 0x458c22
mov eax, dword [ebx*4 + 0x471c20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x458bfa
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x458bc3
mov word [esi], cx
jmp 0x458bf6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x471c20]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x471c20]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x471c20]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x458c46
pop ebx
cmp word [ebp - 4], bx
jne 0x458c0b
cmp esi, dword [ebp + 0xc]
jne 0x458c0b
mov word [esi], bx
jmp 0x458c43
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045690a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x458c46
push 0xd
jmp 0x458c3f
mov ecx, dword [ebx*4 + 0x471c20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x458c3d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x458c46
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x458d0a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x458d1b
pop esi
ret
push ebx
push edi
push esi
call fcn.00458d58
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004545bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x458d43
push ebx
push esi
push edi
call fcn.00441d60
add esp, 0xc
push 0
call fcn.00453c74
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x458d8f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458d9a

Function at 0x45c433
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045c43e

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x1e6c4561
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x4b871076
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4097b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e5b8]
jne 0x4097c2
repz ret
jmp fcn.0040bf86

Function at 0x40ae90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e5b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004075a8
and dword [ebp - 0x14], 0
cmp dword [0x45272c], 0
mov dword [ebp - 0x18], eax
jne 0x40af43
push 0x402218
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40afeb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40220c
push ebx
call edi
test eax, eax
je 0x40afeb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4021fc
push ebx
mov dword [0x45272c], eax
call edi
push eax
call esi
push 0x4021e8
push ebx
mov dword [0x452730], eax
call edi
push eax
call esi
push 0x4021cc
push ebx
mov dword [0x452734], eax
call edi
push eax
call esi
mov dword [0x45273c], eax
test eax, eax
je 0x40af43
push 0x4021b4
push ebx
call edi
push eax
call esi
mov dword [0x452738], eax
mov eax, dword [0x452738]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af9c
cmp dword [0x45273c], ecx
je 0x40af9c
push eax
call esi
push dword [0x45273c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af9c
test ebx, ebx
je 0x40af9c
call edi
test eax, eax
je 0x40af93
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40af93
test byte [ebp - 8], 1
jne 0x40af9c
or dword [ebp + 0x10], 0x200000
jmp 0x40afcf
mov eax, dword [0x452730]
cmp eax, dword [ebp - 0x18]
je 0x40afcf
push eax
call esi
test eax, eax
je 0x40afcf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40afcf
mov eax, dword [0x452734]
cmp eax, dword [ebp - 0x18]
je 0x40afcf
push eax
call esi
test eax, eax
je 0x40afcf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45272c]
call esi
test eax, eax
je 0x40afeb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40afed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097b8
leave
ret
Function at 0x4312f0
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x10f4
call fcn.0040d620
cmp dword [0x25a1ab4], 0x37
jne 0x431406
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x40328c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_RequestDeviceWakeup]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
lea eax, [esp + 0xf4]
push eax
push 0x4032b0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x8f4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 0x24]
push ecx
push 0x40329c
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x4f0]
push edx
push 0
push 0x403310
push 0x403318
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403380
push 0x4033d0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
xor eax, eax
xor ecx, ecx
lea edx, [esp + 0x14]
mov word [esp + 4], ax
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov word [esp + 0x12], ax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
push edx
lea eax, [esp + 8]
mov word [esp + 0x18], cx
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
mov edx, dword [0x25a1ab8]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x457844]
mov byte [edx + esi], cl
add esp, 0x10f4
ret
Function at 0x431430
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [0x44ef34]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [str._I_]
mov dword [esp + 0x24], eax
mov eax, dword [0x44ef38]
mov dword [esp + 0x20], edx
mov edx, dword [0x44ef3c]
push edi
mov dword [esp + 0x18], ecx
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x20
jmp 0x431484
mov ecx, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x2c]
lea ebx, [edi + ecx]
shr ecx, 5
cmp dword [0x25a1ab4], 0x1b
mov dword [esp + 0x14], eax
mov ebp, ecx
jne 0x4314b8
push 0
lea eax, [esp + 0x4c]
push eax
push 0x403258
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [esp + 0x14]
add ebp, dword [esp + 0x20]
mov dword [0x2597a64], 0
xor ebp, ebx
xor ebp, eax
sub esi, ebp
mov edx, esi
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], eax
cmp dword [0x25a1ab4], 0x1be
lea ebx, [edi + esi]
jne 0x431500
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x2597a68], 0xff6b3619
xor edx, ebx
xor dword [esp + 0x14], edx
mov dword [0x2597a6c], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
add edi, 0x61c88647
dec dword [esp + 0x1c]
jne 0x431480
cmp dword [0x25a1ab4], 0x8d4
jne 0x43156f
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 4
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0xc0
ret 4

Function at 0x4315f0
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x25a1ab4]
sub esp, 8
push ebx
push esi
mov esi, dword [0x457844]
shr eax, 3
push edi
test eax, eax
je 0x431632
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edi, eax
cmp dword [0x25a1ab4], 0x1c
jne 0x431626
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.00431430
add esi, 8
dec edi
jne 0x431610
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402ab4
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.004046b8
test esi, esi
jne 0x402aea
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.004047a8
jmp 0x402b08
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c8
mov edi, eax
test esi, esi
je 0x402b08
cmp dword [ebx], 0
je 0x402b08
dec esi
jmp 0x402af1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4c3008], 0x8088405
inc edx
mov dword [ebx + 0x4c3008], edx
fld qword [ebx + 0x4c306c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403734
Capabilities:
Query or enumerate registry value

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

Function at 0x404498
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c904c], 0
je 0x4044f9
cmp word [0x4c9220], 0xd7b2
jne 0x4044c1
cmp dword [0x4c9228], 0
jbe 0x4044c1
mov eax, 0x4c921c
call dword [0x4c9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c307c
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 0x404520
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c3034], 0
jne 0x404515
push 0
push 0x4c3074
push 0x4c307c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40466c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040278c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404634
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4066b8
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 0x40671e
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.00404928
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403114
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406708
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406725
lea eax, [ebp - 0x10]
call fcn.004046b8
ret

Function at 0x40c5d8
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 0x40c611
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047a8
jmp 0x40c61a
mov eax, ebx
mov edx, esi
call fcn.0040470c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ce18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc90
mov eax, dword [0x4c8294]
cmp byte [eax], 0
je 0x40ce94
mov eax, dword [0x4c7e88]
call fcn.00402f30
call fcn.004028f4
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.00409660
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 0x40cedc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ceca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c7de4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c9668]
call fcn.00405b60
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 0x40d784
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 0x40d85a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404750
lea eax, [ebp - 8]
call fcn.00404bc8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b78
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d844
mov eax, ebx
call fcn.0040278c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d83d
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.00404b78
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d827
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d86c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d827
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 0x40d844
mov eax, dword [ebp - 0x10]
call fcn.004027ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d861
lea eax, [ebp - 8]
call fcn.004046b8
ret

Function at 0x40dde0
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 0x40de44
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.00404928
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004090dc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de4b
lea eax, [ebp - 0xc]
call fcn.004046b8
ret

Function at 0x420b74
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.004209a0
dec esi
jne 0x420b96
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421d5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c988c
cmp dword [edi], 0
jne 0x421dd8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c9888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c34d0
mov ecx, 2
call fcn.00402988
mov edx, 0x421d34
lea eax, [esi + 5]
call fcn.00421d54
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421d54
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 0x421dad
mov dword [0x4c9888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423414
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 0x42341a
ret

Function at 0x425a00
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 0x425a51
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425a38
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425a28
jmp 0x425a51
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 0x425a39
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ee84
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404b68
xor eax, eax
push ebp
push 0x42efb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42ef85
xor eax, eax
push ebp
push 0x42ef7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404978
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42ef53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42ef42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404978
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404b78
mov edx, ebx
pop ecx
call fcn.00402988
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 0x42ef49
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4c7cf4]
mov dl, 1
mov eax, dword [0x407ba0]
call fcn.0040cfa8
call fcn.00404050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42efb9
lea eax, [ebp - 4]
call fcn.004046b8
ret