joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001750
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp byte [0x10013e38], 1
jne 0x10001772
test byte [0x10013e37], 1
jne 0x10001790
jmp 0x100017d4
mov dword [esp], str.LIBUNWIND_PRINT_APIS
call sym._getenv
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x100017d4
mov dword [esp], 2
mov edi, dword [dbg.__acrt_iob_func]
call edi
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.libunwind:___unw_set_fpreg_cursor_p__regNum_d__value_g__n
call dbg.__mingw_fprintf
mov dword [esp], 2
call edi
mov dword [esp], eax
call sym._fflush
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x10010788]
mov dword [esp], ebx
mov ecx, esi
call edi
sub esp, 4
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x1000181b
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x10010788]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
mov ecx, esi
call edi
sub esp, 0xc
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
ret

Function at 0x10001830
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x10013e38], 1
jne 0x1000184a
test byte [0x10013e37], 1
jne 0x10001869
jmp 0x10001895
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001895
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_cursor_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push 0
call edi
pop esi
pop edi
ret

Function at 0x100018b0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x10013e38], 1
jne 0x100018ca
test byte [0x10013e37], 1
jne 0x100018e9
jmp 0x10001915
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001915
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret
Function at 0x10001930
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x10013e38], 1
jne 0x1000194f
test byte [0x10013e37], 1
jne 0x1000196e
jmp 0x1000199b
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x1000199b
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebx
call edi
xor ecx, ecx
cmp dword [ebx + 4], 0
mov eax, 0xffffe66b
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret

Function at 0x100019c0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x10013e38], 1
jne 0x100019da
test byte [0x10013e37], 1
jne 0x100019f9
jmp 0x10001a25
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001a25
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret

Function at 0x10001a40
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x10013e38], 1
jne 0x10001a64
test byte [0x10013e37], 1
jne 0x10001a83
jmp 0x10001ab1
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001ab1
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
push eax
call dbg.__mingw_fprintf
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push dword [esp + 0x20]
push ebp
push ebx
call edi
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001ae0
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x10013e38], 1
jne 0x10001aff
test byte [0x10013e37], 1
jne 0x10001b1e
jmp 0x10001b4b
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001b4b
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_is_fpreg_cursor_p__regNum_d__n
push eax
call dbg.__mingw_fprintf
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebx
call edi
movzx eax, al
pop esi
pop edi
pop ebx
ret

Function at 0x10001b70
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x10013e38], 1
jne 0x10001b8f
test byte [0x10013e37], 1
jne 0x10001bae
jmp 0x10001bdb
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001bdb
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_regname_cursor_p__regNum_d__n
push eax
call dbg.__mingw_fprintf
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x38]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
push ebx
call edi
pop esi
pop edi
pop ebx
ret

Function at 0x10001c00
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x10013e38], 1
jne 0x10001c1a
test byte [0x10013e37], 1
jne 0x10001c39
jmp 0x10001c65
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001c65
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_is_signal_frame_cursor_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [0x10010788]
mov ecx, esi
call edi
movzx eax, al
pop esi
pop edi
ret
Function at 0x10001c80
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
cmp byte [0x10013e38], 1
jne 0x10001c9d
test byte [0x10013e37], 1
jne 0x10001cbc
jmp 0x10001ce8
push str.LIBUNWIND_PRINT_APIS
call sym._getenv
add esp, 4
mov byte [0x10013e38], 1
test eax, eax
setne byte [0x10013e37]
je 0x10001ce8
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_iterate_dwarf_unwind_cache_func_p__n
push eax
call dbg.__mingw_fprintf
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
push 0x10013e30
call sym._AcquireSRWLockExclusive_4
mov edi, dword [0x10013008]
cmp edi, dword [0x1001300c]
jae 0x10001d2f
mov ebx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp], eax
mov ecx, esi
mov esi, dword [edi + 8]
mov ebp, dword [edi + 0xc]
call dword [0x10010788]
push ebx
push ebp
push esi
mov esi, ecx
push dword [esp + 0xc]
call ecx
add esp, 0x10
add edi, 0x10
cmp edi, dword [0x1001300c]
jb 0x10001d00
push 0x10013e30
call sym._ReleaseSRWLockExclusive_4
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100024d0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x10013e36], 1
jne 0x100024e3
movzx eax, byte [0x10013e35]
and al, 1
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sym._getenv
add esp, 4
test eax, eax
setne al
setne byte [0x10013e35]
mov byte [0x10013e36], 1
and al, 1
ret

Function at 0x10002510
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x10013e3a], 1
jne 0x10002523
movzx eax, byte [0x10013e39]
and al, 1
ret
push str.LIBUNWIND_PRINT_DWARF
call sym._getenv
add esp, 4
test eax, eax
setne al
setne byte [0x10013e39]
mov byte [0x10013e3a], 1
and al, 1
ret
Function at 0x10002db0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
mov esi, esp
mov edx, dword [ebp + 0x1c]
Function at 0x10005700
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1014
call sym.__alloca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x1000
push edx
push eax
call sym._K32EnumProcessModules_16
test eax, eax
je 0x1000582a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x10005893
shr ecx, 2
mov dword [esp + 8], ecx
jmp 0x10005763
mov edx, dword [esp + 0xc]
inc edx
xor eax, eax
mov ecx, dword [esp + 8]
cmp edx, ecx
je 0x10005893
mov dword [esp + 0xc], edx
mov esi, dword [esp + edx*4 + 0x14]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x102c]
mov dword [edx], esi
mov dword [esp], esi
movzx ebx, word [esi + eax + 6]
test ebx, ebx
je 0x10005750
add eax, dword [esp]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp + 4], 0
xor ecx, ecx
jmp 0x100057b2
mov ecx, esi
mov eax, ecx
and al, byte [esp + 4]
test al, 1
jne 0x10005826
add ebp, 0x28
dec ebx
je 0x10005750
mov esi, ecx
mov edi, dword [ebp + 0xc]
add edi, dword [esp]
push 8
push str..text
push ebp
call sym._strncmp
add esp, 0xc
test eax, eax
je 0x10005800
push 8
push str..eh_frame
push ebp
call sym._strncmp
add esp, 0xc
test eax, eax
jne 0x100057a0
mov ecx, dword [esp + 0x102c]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp + 4], eax
jmp 0x100057a0
mov eax, dword [ebp + 8]
add eax, edi
mov edx, dword [esp + 0x1028]
cmp edi, edx
setbe cl
cmp eax, edx
seta al
and al, cl
mov ecx, esi
or cl, al
mov eax, ecx
and al, byte [esp + 4]
test al, 1
je 0x100057ac
mov al, 1
jmp 0x10005893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x10013e36], 1
jne 0x10005846
test byte [0x10013e35], 1
jne 0x10005865
jmp 0x10005891
push str.LIBUNWIND_PRINT_UNWINDING
call sym._getenv
add esp, 4
mov byte [0x10013e36], 1
test eax, eax
setne byte [0x10013e35]
je 0x10005891
mov edi, dword [dbg.__acrt_iob_func]
push 2
call edi
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call dbg.__mingw_fprintf
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sym._fflush
add esp, 4
xor eax, eax
add esp, 0x1014
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x10006a30
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
call sym._logAPIs
test al, al
je 0x10006a77
mov esi, dword [dbg.__acrt_iob_func]
push 2
call esi
add esp, 4
push ebp
push ebx
push edi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call dbg.__mingw_fprintf
add esp, 0x14
push 2
call esi
add esp, 4
push eax
call sym._fflush
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp sym.libunwind.dll_unw_set_reg
Function at 0x10007680
Capabilities:
Write file on windows

Disassembly:
push esi
push eax
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp], eax
push 2
call dbg.__acrt_iob_func
add esp, 4
push eax
push 1
push 0x1b
push str.Mingw_w64_runtime_failure:_n
call sym._fwrite
add esp, 0x10
push 2
call dbg.__acrt_iob_func
add esp, 4
push dword [esp]
push esi
push eax
call sym._vfprintf
add esp, 0xc
call sym._abort
int3

Function at 0x100079a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x100079b1
jmp dword [eax*4 + 0x100101fc]
cmp dword [0x1001309c], 0
je 0x10007ac0
push 0x100130a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100130b8]
test edi, edi
je 0x10007ab5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100079fb
mov edi, dword [edi + 8]
test edi, edi
je 0x10007ab5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x100079f0
test esi, esi
je 0x100079f0
mov ecx, dword [edi + 4]
call dword [0x10010788]
push esi
call ecx
add esp, 4
jmp 0x100079f0
call dbg._fpreset
jmp case.default.0x100079b1
cmp dword [0x1001309c], 0
je case.default.0x100079b1
push 0x100130a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100130b8]
test edi, edi
je 0x10007aa8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10007a67
mov edi, dword [edi + 8]
test edi, edi
je 0x10007aa8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x10007a60
test esi, esi
je 0x10007a60
mov ecx, dword [edi + 4]
call dword [0x10010788]
push esi
call ecx
add esp, 4
jmp 0x10007a60
cmp dword [0x1001309c], 0
jne 0x10007a9c
push 0x100130a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1001309c], 1
jmp case.default.0x100079b1
push 0x100130a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x100079b1
push 0x100130a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x1001309c]
cmp eax, 1
jne case.default.0x100079b1
mov eax, dword [0x100130b8]
test eax, eax
je 0x10007af2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sym._free
add esp, 4
mov eax, esi
test esi, esi
jne 0x10007ae0
mov dword [0x100130b8], 0
mov dword [0x1001309c], 0
push 0x100130a0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007c20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x100101f0]
xor eax, eax
cmp word [esi], 0x5a4d
jne 0x10007c86
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x10007c86
add esi, ecx
cmp word [esi + 0x18], 0x10b
jne 0x10007c86
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x10007c86
mov edx, dword [esp + 0xc]
sub edx, dword [0x100101f0]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x10007c76
add esi, 0x28
dec ecx
je 0x10007c86
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x10007c70
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x10007c70
mov eax, esi
pop esi
pop edi
ret
Function at 0x402133
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x2bc]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x401060
push 0x80000001
mov dword [ebp - 0x2bc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call fcn.004022b0
push dword [0x406d08]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4021b8
lea eax, [ebp - 0x2b8]
push eax
push dword [0x406d08]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
lea eax, [ebp - 0x2b8]
push eax
push 3
push ebx
push 0x401190
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0x146
push 0xc9
push dword [0x406d08]
call ebx
movzx eax, ax
xor esi, esi
inc esi
mov dword [ebp - 0x2c0], eax
cmp esi, eax
ja 0x402201
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi - 1]
push eax
push 0x148
push 0xc9
push dword [0x406d08]
call ebx
jmp 0x40220a
xor eax, eax
mov word [ebp - 0xa8], ax
push esi
push 0x401170
lea eax, [ebp - 0x2a8]
push 0x200
push eax
call fcn.0040163e
add esp, 0x10
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa8]
push eax
push 1
push 0
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2c0]
inc esi
cmp esi, 0x14
jbe 0x4021de
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 2
push str.DIALER.HLP
push dword [0x406d08]
call dword [sym.imp.USER32.dll_WinHelpW]
push dword [0x406d08]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
and dword [0x406d08], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.00405716
mov esp, ebp
pop ebp
ret
Function at 0x404d83
Capabilities:
Hash data using murmur3

Disassembly:
xor edx, esp
inc eax
sub dword [0x406025], 0x327b9df
xor esi, eax
neg edi
dec eax
not ecx
mov dword [0x4060d8], esi
dec eax
rol esi, 0x13
xor esi, eax
xor esi, edx
not ecx
ror edx, 0x1f
xor esi, ebx
xchg edx, eax
add dword [ebx], 0xc2ad3d04
xor ebx, eax
add esi, esp
xchg esi, eax
sub dword [0x4061e0], 0x1a9afa2c
neg edi
mov dword [0x406110], 0x2ac0cda8
ror edi, 1
dec eax
xor esi, eax
inc esi
xor esi, eax
mov dword [0x40603c], edi
not edx
sub esi, ecx
xor edi, ebp
sub ecx, 0x755ef5c
not eax
rol esi, 0x15
add eax, 0x4944b3
xor ecx, esp
inc eax
dec eax
xor ecx, esp
sub eax, 0x4944b3
ror esi, 0x15
not eax
add ecx, 0x755ef5c
xor edi, ebp
add esi, ecx
not edx
sub dword [0x4061b6], edi
Function at 0x4054f5
Capabilities:
Terminate process

Disassembly:
call fcn.00405bb8
jmp 0x405504
push 0x58
push 0x405d28
call fcn.00405c84
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
mov edx, 0x406cf8
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x405553
cmp eax, edi
jne 0x405566
xor esi, esi
inc esi
cmp dword [0x406cfc], 1
jne 0x405573
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4055a9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40553b
cmp dword [0x406cfc], ebx
jne 0x40559f
mov dword [0x406cfc], 1
push 0x40101c
push 0x401010
call fcn.004056ed
pop ecx
pop ecx
test eax, eax
je 0x4055a9
jmp 0x4056d6
mov dword [0x406064], 1
cmp dword [0x406cfc], 1
jne 0x4055cd
push 0x40100c
push 0x401004
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x406cfc], 2
test esi, esi
jne 0x4055da
xor eax, eax
mov ecx, 0x406cf8
xchg dword [ecx], eax
cmp dword [0x406d00], 0
je 0x4055fc
push 0x406d00
call fcn.00405ab0
pop ecx
test eax, eax
je 0x4055fc
push ebx
push 2
push ebx
call dword [0x406d00]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x405659
test cl, cl
je 0x405618
test edi, edi
jne 0x405659
mov al, byte [esi]
test al, al
je 0x405628
cmp al, 0x20
ja 0x405628
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x405618
test byte [ebp - 0x3c], 1
je 0x405634
movzx eax, word [ebp - 0x38]
jmp 0x405637
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x406060], eax
cmp dword [0x406078], 0
jne 0x4056b2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x40566a
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x40567d
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x405609
cmp dword [0x406064], 0
jne 0x4056c6
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x406060]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4056e2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00405cc9
ret

Function at 0x405995
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x405d50
call fcn.00405c84
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4059f5
cmp eax, 0xffffffff
je 0x4059f5
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4059ee
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4059ee
cmp edx, 0x10000000
jae 0x4059ee
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4059eb
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00405cc9
ret 4
Function at 0x405a60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405a9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405a96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405aa0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405a86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405b80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x405b96
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x405bb1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x41dda0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [ecx + 0x9c0]
push ebp
push edi
push esi
push ebx
cmp eax, 0x26f
lea edx, [eax + 1]
ja 0x41ddf0
mov eax, dword [ecx + eax*4]
mov dword [ecx + 0x9c0], edx
pop ebx
pop esi
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop edi
pop ebp
ret
mov edi, dword [ecx]
lea ebp, [ecx + 0x38c]
mov eax, ecx
mov edx, ecx
lea esi, [esi]
and edi, 0x80000000
mov ebx, edi
mov edi, dword [edx + 4]
mov esi, edi
and esi, 0x7fffffff
or esi, ebx
mov ebx, esi
shr ebx, 1
xor ebx, dword [edx + 0x634]
and esi, 1
je 0x41def0
xor ebx, 0x9908b0df
add edx, 4
mov dword [edx - 4], ebx
cmp ebp, edx
jne 0x41de00
mov ebx, dword [ecx + 0x38c]
lea esi, [ecx + 0x630]
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
mov ebx, dword [eax + 0x390]
and edx, 0x80000000
mov edi, ebx
and edi, 0x7fffffff
or edi, edx
mov edx, edi
shr edx, 1
xor edx, dword [eax]
and edi, 1
je 0x41ded0
xor edx, 0x9908b0df
add eax, 4
mov dword [eax + 0x388], edx
cmp esi, eax
jne 0x41de50
mov edx, dword [ecx + 0x9bc]
mov eax, dword [ecx]
and edx, 0x80000000
and eax, 0x7fffffff
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [ecx + 0x630]
mov ebx, eax
xor ebx, 0x9908b0df
and edx, 1
mov edx, 1
cmovne eax, ebx
mov dword [ecx + 0x9bc], eax
xor eax, eax
jmp 0x41ddb4
mov dword [eax + 0x38c], edx
add eax, 4
cmp eax, esi
jne 0x41de50
jmp 0x41de86
mov dword [edx], ebx
add edx, 4
cmp edx, ebp
jne 0x41de00
jmp 0x41de38