joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001520
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100550c0], 0
je 0x10001539
mov eax, dword [0x100550c0]
jmp 0x100016d6
mov dword [0x100550c0], 0x10055098
push 0x28
push 0
push 0x10055098
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10055098], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1005509c], eax
cmp dword [0x1005509c], 0
jne 0x1000157f
xor eax, eax
jmp 0x100016d6
push str.ImagehlpApiVersionEx
mov eax, dword [0x1005509c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550a0], eax
push str.SymInitialize
mov ecx, dword [0x1005509c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550a4], eax
push str.SymSetOptions
mov edx, dword [0x1005509c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550a8], eax
push str.SymGetOptions
mov eax, dword [0x1005509c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550ac], eax
push str.SymLoadModule
mov ecx, dword [0x1005509c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550b0], eax
push str.SymGetModuleInfo
mov edx, dword [0x1005509c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550b4], eax
push str.SymGetSymFromName
mov eax, dword [0x1005509c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550b8], eax
push str.BindImage
mov ecx, dword [0x1005509c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100550bc], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x100550a0], 0
je 0x1000165d
lea eax, [ebp - 8]
push eax
call dword [0x100550a0]
cmp dword [0x100550a0], 0
je 0x1000166f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x1000168a
mov edx, dword [0x1005509c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1005509c], 0
xor eax, eax
jmp 0x100016d6
cmp dword [0x100550a4], 0
je 0x100016a3
push 0
push 0
mov eax, dword [0x10055098]
push eax
call dword [0x100550a4]
cmp dword [0x100550ac], 0
je 0x100016d1
cmp dword [0x100550a8], 0
je 0x100016d1
call dword [0x100550ac]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x100550a8]
mov eax, dword [0x100550c0]
mov esp, ebp
pop ebp
ret
Function at 0x100065e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
mov eax, dword [0x1003f00c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [esp + 0x4c]
xorps xmm1, xmm1
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
push edi
mov edi, edx
call fcn.10006480
cmp dword [eax + 0x14], 0x10
jb 0x1000660d
mov eax, dword [eax]
push ebx
push 0x20
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x10006656
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000664c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000664c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002f1a6
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
mov ecx, dword [esp + 0x50]
add esp, 4
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002ee7e
add esp, 0x44
ret

Function at 0x10006710
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x48
mov eax, dword [0x1003f00c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [esp + 0x58]
mov ebx, edx
mov edx, dword [esp + 0x54]
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.1000e620
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 0x2c]
push esi
push 0x20
push ecx
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x1000678d
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006783
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006783
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002f1a6
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002ee7e
add esp, 0x48
ret
Function at 0x100115f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1003f00c]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
mov dword [0x100550e0], 0
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call fcn.100027f0
mov eax, dword [esp + 0x26]
cmp eax, 0xffffffff
je 0x10011654
test eax, 0x68000
jne 0x10011654
mov eax, dword [esp + 0x22]
test eax, eax
je 0x100116e0
cmp eax, 5
je 0x100116a4
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call fcn.100027f0
mov eax, dword [esp + 0x26]
cmp eax, 0xffffffff
je 0x10011688
test eax, 0x68000
jne 0x10011688
mov ecx, dword [esp + 0x22]
jmp 0x1001168b
or ecx, 0xffffffff
mov eax, dword [0x100550e0]
add eax, ecx
add esi, eax
mov dword [0x100550e0], eax
cmp eax, 5
jl 0x10011615
jmp 0x100116b1
mov eax, dword [0x100550e0]
add eax, 4
mov dword [0x100550e0], eax
push eax
call fcn.1002f410
add esp, 4
mov dword [0x100550e8], eax
mov dword [0x100550e4], edi
push 0x40
push 0x3000
push dword [0x100550e0]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100116f5
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1002ee7e
mov esp, ebp
pop ebp
ret 8
push dword [0x100550e0]
push edi
push dword [0x100550e8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [0x100550e0]
push dword [0x100550e8]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [0x100550e0]
mov eax, edi
sub eax, esi
mov byte [esp + 0x20], 0xe9
sub eax, 5
add esp, 0xc
mov dword [esp + 0x15], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + esi], eax
mov al, byte [esp + 0x18]
mov byte [ecx + esi + 4], al
lea eax, [esp + 0x1c]
push eax
push 0x40
push dword [0x100550e0]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [0x100550e0], 5
mov cl, 5
jle 0x10011781
mov eax, 5
nop dword [eax + eax]
inc cl
mov byte [eax + edi], 0x90
movzx eax, cl
cmp eax, dword [0x100550e0]
jl 0x10011770
mov eax, dword [ebp + 0xc]
sub eax, edi
sub eax, 5
mov dword [esp + 0x15], eax
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov al, byte [esp + 0x18]
mov byte [edi + 4], al
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push dword [0x100550e0]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1002ee7e
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c260
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
call fcn.1001c070
mov ecx, dword [0x10055250]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1001c2a6
cmp byte [0x10f784bc], 0
je 0x1001c2a6
push dword [0x10f78134]
push dword [0x10f78130]
push dword [0x10f7812c]
push dword [0x10f78128]
call fcn.1001ba00
push dword [0x10f78144]
push dword [0x10f78140]
push dword [0x10f7813c]
push dword [0x10f78138]
call fcn.10017920
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2d
call esi
test al, 1
je 0x1001c2e2
cmp byte [0x10056024], 0
sete al
mov byte [0x10056024], al
jmp 0x1001c2e7
mov al, byte [0x10056024]
test al, al
je 0x1001c45e
push 1
call esi
test al, 1
je 0x1001c300
mov byte [0x1005603c], 1
jmp 0x1001c310
push 1
call esi
and al, 1
neg al
sbb al, al
and byte [0x1005603c], al
push 2
call esi
test al, 1
je 0x1001c321
mov byte [0x10056026], 1
jmp 0x1001c331
push 2
call esi
and al, 1
neg al
sbb al, al
and byte [0x10056026], al
push 1
call esi
test ax, ax
je 0x1001c343
mov byte [0x1005603e], 1
jmp 0x1001c352
push 1
call esi
neg ax
sbb al, al
and byte [0x1005603e], al
push 2
call esi
test ax, ax
je 0x1001c364
mov byte [0x10056027], 1
jmp 0x1001c373
push 2
call esi
neg ax
sbb al, al
and byte [0x10056027], al
cmp byte [0x10f78543], 0
je 0x1001c38d
mov ecx, 0x100550dc
call fcn.10007120
mov byte [0x10f78543], 0
cmp byte [0x10f78542], 0
je 0x1001c3a7
mov ecx, 0x100550dc
call fcn.1000aa40
mov byte [0x10f78542], 0
push dword [0x10f78124]
mov ecx, 0x10058448
push dword [0x10f78120]
push dword [0x10f7811c]
push dword [0x10f78118]
call fcn.10017c70
push dword [0x10f78b98]
push dword [0x10f78b90]
call fcn.10029f80
mov esi, dword [0x10f78128]
xor eax, eax
mov edx, dword [0x10f7812c]
test esi, esi
mov edi, dword [0x100551f8]
mov ebx, dword [0x100550f4]
cmovs esi, eax
test edx, edx
mov ecx, ebx
cmovs edx, eax
sub ecx, dword [0x10f78130]
mov eax, edi
sub eax, dword [0x10f78134]
cmp esi, eax
cmovg esi, eax
cmp edx, ecx
mov dword [0x10f78128], esi
cmovg edx, ecx
mov ecx, dword [0x10f78118]
xor eax, eax
mov dword [0x10f7812c], edx
test ecx, ecx
cmovs ecx, eax
mov eax, dword [0x10f7811c]
xor edx, edx
test eax, eax
cmovs eax, edx
sub edi, dword [0x10f78120]
sub ebx, dword [0x10f78124]
cmp ecx, edi
cmovg ecx, edi
cmp eax, ebx
mov dword [0x10f78118], ecx
cmovg eax, ebx
mov dword [0x10f7811c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001eea0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x20
mov eax, dword [0x1003f00c]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x28], 1
push esi
mov esi, dword [esp + 0x28]
jne 0x1001efce
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov ecx, 0xa4
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x10039ccc]
xor al, cl
inc ecx
mov byte [esp + edx + 0x10], al
and ecx, 0x800000ff
jns 0x1001eeed
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x1001eed0
push 0x1001ed70
lea eax, [esp + 0x14]
mov byte [esp + 0x20], 0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x72657375
push eax
mov dword [esp + 0x14], 0x642e3233
mov word [esp + 0x18], 0x6c6c
mov byte [esp + 0x1a], 0
call fcn.10001750
push eax
call fcn.100010f0
mov dword [0x10055f14], eax
mov ecx, 0x10
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + str.WtfPagexjIuh]
xor al, cl
inc ecx
mov byte [esp + edx + 0x10], al
and ecx, 0x800000ff
jns 0x1001ef5d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x1001ef40
push 0x1001edc0
lea eax, [esp + 0x14]
mov byte [esp + 0x20], 0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x72657375
push eax
mov dword [esp + 0x14], 0x642e3233
mov word [esp + 0x18], 0x6c6c
mov byte [esp + 0x1a], 0
call fcn.10001750
push eax
call fcn.100010f0
push 0x104
push 0x10055f18
push esi
mov dword [0x10055f10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push esi
push 0x1001cd80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100550dc], esi
mov ecx, dword [esp + 0x20]
mov eax, 1
pop esi
xor ecx, esp
call fcn.1002ee7e
add esp, 0x20
ret 0xc
Function at 0x10027290
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov dword [edi + 0xd60], 0
mov dword [0x2438ff74], 0xffffffff
mov dword [0x243b2ef8], 0
cmp byte [0x10f78538], 0
je 0x100272da
push 0x45
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x100272da
cmp byte [0x10f78538], 0
jne 0x100273eb
mov ecx, dword [esi + 0x3578]
cmp ecx, dword [esi + 0x3570]
jne 0x100272ff
mov eax, dword [esi + 0x3574]
inc eax
mov dword [esi + 0x3574], eax
add eax, ecx
mov dword [esi + 0x3578], eax
jmp 0x10027309
mov dword [esi + 0x3574], 0
mov ecx, dword [0x10055250]
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [0x10055250]
fstp dword [esp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [0x10055258]
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
addss xmm0, dword [esp + 8]
mov edx, dword [esi + 0x3578]
divss xmm0, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
inc eax
addss xmm0, dword [0x1003abd0]
cvttss2si ecx, xmm0
add eax, ecx
cmp edx, eax
jle 0x100273e5
mov ecx, dword [0x10055250]
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [0x10055250]
fstp dword [esp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
call eax
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [0x10055258]
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
addss xmm0, dword [esp + 8]
mov edx, dword [eax + 0x18]
inc edx
divss xmm0, dword [eax + 0x1c]
addss xmm0, dword [0x1003abd0]
cvttss2si ecx, xmm0
add edx, ecx
mov dword [esi + 0x3578], edx
mov dword [edi + 0xe08], edx
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + 0x35a0], eax
pop esi
pop ecx
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5b265f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6ee903c2
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x405b0c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405fbc
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c95
test edi, edi
je 0x405c95
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405bd5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405bb0
cmp edi, 0xffffffff
je 0x405b71
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b71
mov byte [esp], 0
jmp 0x405c95
cmp dword [esi], 1
jg 0x405bb0
cmp dword [esi], 0
jne 0x405ba2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405ba2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c95
lea eax, [esp + 0xc]
call fcn.004057a4
dec ebp
test ebp, ebp
jg 0x405b56
cmp edi, 0xffffffff
je 0x405bd5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405bd3
mov byte [esp], 0
jmp 0x405c95
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405b1a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405bd5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405d10
mov edx, eax
mov ebx, dword [0x40d8e4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405c39
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405c37
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405c39
xor edi, edi
cmp byte [esp], 0
je 0x405c5f
mov ebx, dword [esi]
test bl, 1
jne 0x405c75
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c3f
mov byte [esp + 1], 1
jmp 0x405c75
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c5f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405bec
cmp byte [esp], 0
je 0x405c95
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4067e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d040], 0
je 0x40684f
cmp word [0x40d330], 0xd7b2
jne 0x406811
cmp dword [0x40d338], 0
jbe 0x406811
mov eax, 0x40d32c
call dword [0x40d348]
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
mov eax, 0x40687c
call fcn.00406e2c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c01e], 0
jne 0x40686b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409280
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 0x416ae3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213dc]
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.0040f8ce
and dword [ebp - 0x14], 0
cmp dword [0x81e594], 0
mov dword [ebp - 0x18], eax
jne 0x416b96
push 0x403fe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416c3e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fd4
push ebx
call edi
test eax, eax
je 0x416c3e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fc4
push ebx
mov dword [0x81e594], eax
call edi
push eax
call esi
push 0x403fb0
push ebx
mov dword [0x81e598], eax
call edi
push eax
call esi
push 0x403f94
push ebx
mov dword [0x81e59c], eax
call edi
push eax
call esi
mov dword [0x81e5a4], eax
test eax, eax
je 0x416b96
push 0x403f7c
push ebx
call edi
push eax
call esi
mov dword [0x81e5a0], eax
mov eax, dword [0x81e5a0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416bef
cmp dword [0x81e5a4], ecx
je 0x416bef
push eax
call esi
push dword [0x81e5a4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416bef
test ebx, ebx
je 0x416bef
call edi
test eax, eax
je 0x416be6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416be6
test byte [ebp - 8], 1
jne 0x416bef
or dword [ebp + 0x10], 0x200000
jmp 0x416c22
mov eax, dword [0x81e598]
cmp eax, dword [ebp - 0x18]
je 0x416c22
push eax
call esi
test eax, eax
je 0x416c22
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416c22
mov eax, dword [0x81e59c]
cmp eax, dword [ebp - 0x18]
je 0x416c22
push eax
call esi
test eax, eax
je 0x416c22
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81e594]
call esi
test eax, eax
je 0x416c3e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416c40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b44e
leave
ret
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sbb eax, 0x8b5678ec
jne 0x401e56
push esi
lea eax, [ebp - 0x78]
push 0x78
push eax
push esi
call 0x9c5a86e0
pushfd
mov ecx, dword [ebp + 8]
mov ebx, edi
enter 0x40c0, 0xffffffffffffffa1
push eax
push ecx
add edx, 0x40
push 0x40cfac
cld
adc al, 0x15
adc cl, 0x40
xchg ecx, eax
adc dword [edx + eax + 0x36832241], ebp
adc al, 0x85
sal byte [edi + ecx + 0x50], 0x68
rcl edx, cl
inc eax
add ah, bh
adc eax, 0x409864
push ebp
les ecx, [eax]
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
aad 0x8b
in al, dx
adc dword [ecx - 0x74a9acec], 0x44
or byte [ecx - 0x75], al
inc esi
adc al, 0x89
inc ebp
or al, ch
dec ecx
add byte [eax + eax + 0x4181a016], 0
mov dword [0x410bcd], edx
mov ebx, eax
fild dword [esi + 0x14]
test eax, eax
mov edi, edx
fiadd word [esi]
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
call 0x834870
sahf
cmp byte [eax], cl
and byte [edi], bh
mov dword [esi + 0x150834], edi
invalid

Function at 0x401e45
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sbb eax, 0x8b5678ec
jne 0x401e56
push esi
lea eax, [ebp - 0x78]
push 0x78
push eax
push esi
call 0x9c5a86e0
pushfd
mov ecx, dword [ebp + 8]
mov ebx, edi
enter 0x40c0, 0xffffffffffffffa1
push eax
push ecx
add edx, 0x40
push 0x40cfac
cld
adc al, 0x15
adc cl, 0x40
xchg ecx, eax
adc dword [edx + eax + 0x36832241], ebp
adc al, 0x85
sal byte [edi + ecx + 0x50], 0x68
rcl edx, cl
inc eax
add ah, bh
adc eax, 0x409864
push ebp
les ecx, [eax]
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
aad 0x8b
in al, dx
adc dword [ecx - 0x74a9acec], 0x44
or byte [ecx - 0x75], al
inc esi
adc al, 0x89
inc ebp
or al, ch
dec ecx
add byte [eax + eax + 0x4181a016], 0
mov dword [0x410bcd], edx
mov ebx, eax
fild dword [esi + 0x14]
test eax, eax
mov edi, edx
fiadd word [esi]
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
call 0x834870
sahf
cmp byte [eax], cl
and byte [edi], bh
mov dword [esi + 0x150834], edi
invalid