joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, edx
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [esp + 4], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x50], eax
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
movzx eax, word [eax + 0x12]
rol ax, 8
mov edi, ecx
mov esi, dword [ebp + 0xc]
cmp ax, 8
je 0x511bb6
movzx eax, ax
cmp eax, 0xa4
je 0x511bed
cmp eax, 0xb7
jne case.0x50440c.47
mov eax, dword [ebp + 8]
add eax, 0x8fffffff
mov ecx, esi
adc ecx, 0xffffffff
mov esi, edx
xor edx, edx
mov dword [esp + 0x20], edi
mov ebx, 0xe
cmp ebx, eax
mov edi, dword [esp + 0x20]
sbb edx, ecx
mov edx, esi
mov esi, dword [ebp + 0xc]
jb case.0x50440c.47
jmp dword [eax*4 + 0x56642c]
mov eax, dword [ebp + 8]
add eax, 0x8fffffff
mov ecx, esi
adc ecx, 0xffffffff
mov dword [esp + 0x24], edx
xor edx, edx
mov ebx, 0x35
cmp ebx, eax
sbb edx, ecx
mov edx, dword [esp + 0x24]
jb case.0x50440c.47
jmp dword [eax*4 + 0x566354]
mov ecx, dword [ebp + 8]
mov eax, ecx
xor eax, 0x70000000
or eax, esi
je case.0x50440c.37
mov eax, ecx
xor eax, 0x70000002
or eax, esi
je case.0x50440c.37
mov eax, ecx
xor eax, 0x70000001
or eax, esi
je case.0x50440c.36
Function at 0x5392c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0xc], xmm0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp]
xor eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
xor ecx, dword [esp + 0x10]
xor edi, edi
or ecx, eax
je 0x53933e
mov ebx, esp
nop dword [eax + eax]
inc edi
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov eax, dword [esp]
xor eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
xor ecx, dword [esp + 0x10]
or ecx, eax
jne 0x539320
test edi, edi
je 0x5393e3
cmp edi, 0x15555556
jae 0x5393ed
lea ebp, [esp + 0x2c]
shl edi, 2
lea ebx, [edi + edi*2]
push ebx
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ebx
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
movsd xmm0, qword [ebp]
movsd qword [esp], xmm0
lea eax, [esp + 0x38]
movsd xmm0, qword [eax]
movsd qword [esp + 0xc], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp]
xor eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
xor ecx, dword [esp + 0x10]
or ecx, eax
je 0x5393e0
mov ebx, esp
nop dword [eax]
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
add edi, 0xc
mov eax, dword [esp]
xor eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
xor ecx, dword [esp + 0x10]
or ecx, eax
jne 0x5393b0
mov dword [esi + 4], edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov ecx, esi
call fcn.00539540
int3
Function at 0x53aaf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov dword [esp + 4], ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x53acbc
mov esi, dword [ebp + 0x10]
cmp ebx, esi
jae 0x53abb0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], str.offset__0x
lea eax, [esp + 0x30]
mov dword [esp + 0x48], eax
mov word [esp + 0x50], 0xe03
lea eax, [esp + 0x40]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], str.__is_past_the_end_of_the_contents__size_0x
mov word [esp + 0x64], 0x302
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x54]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x70], eax
mov word [esp + 0x78], 0xe02
lea eax, [esp + 0x68]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x56b756
mov word [esp + 0x24], 0x302
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x53acc6
mov edx, dword [eax]
lea esi, [esp + 0x14]
lea ecx, [esp + 0x3c]
push esi
push eax
call dword [edx + 0x18]
jmp 0x53acbc
jl 0x53acbc
lea eax, [ebp + 8]
mov eax, dword [eax]
add ebx, eax
mov dword [esp + 0x10], eax
add esi, eax
mov dword [esp + 8], ebx
jmp 0x53abe3
mov edi, 1
mov esi, dword [esp + 0xc]
add esi, edi
cmp esi, ebx
ja 0x53acbc
mov eax, ebx
sub eax, esi
push eax
push esi
call fcn.0054b030
add esp, 8
test eax, eax
mov dword [esp + 0xc], esi
je 0x53abd0
mov edi, eax
mov ebx, dword [esp + 4]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x90]
sub esi, dword [esp + 0x10]
mov dword [esp + 0x18], str.__6tx_
mov dword [esp + 0x14], 0x553300
mov dword [esp + 0x1c], esi
mov ecx, eax
lea eax, [esp + 0x14]
push eax
call fcn.005507fe
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ebx, eax
xor esi, esi
jmp 0x53ac4d
lea edx, [ecx + 1]
mov dword [ebx + 0x10], edx
mov byte [ecx], al
inc esi
cmp edi, esi
je 0x53ac7c
mov eax, dword [esp + 0xc]
movzx eax, byte [eax + esi]
mov ecx, eax
add cl, 0xe0
cmp cl, 0x5f
jb 0x53ac64
mov eax, 0x2e
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebx + 0xc]
jb 0x53ac40
movzx eax, al
mov ecx, ebx
push eax
call fcn.005507da
inc esi
cmp edi, esi
jne 0x53ac4d
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x53aca0
lea edx, [ecx + 1]
mov dword [eax + 0x10], edx
mov byte [ecx], 0xa
jmp 0x53aca9
mov ecx, eax
push 0xa
call fcn.005507da
mov ebx, dword [esp + 8]
inc edi
mov esi, dword [esp + 0xc]
add esi, edi
cmp esi, ebx
jbe 0x53abe3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.0043e9e0
int3
Function at 0x54b1d0
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.0x54b1e1
jmp dword [eax*4 + 0x56f23c]
cmp dword [0x5780ec], 0
je 0x54b2e3
push 0x5780f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x578108]
test edi, edi
je 0x54b2d8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x54b22b
mov edi, dword [edi + 8]
test edi, edi
je 0x54b2d8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x54b220
test esi, esi
je 0x54b220
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x54b220
cmp dword [0x5780ec], 0
jne 0x54b260
push 0x5780f0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5780ec], 1
jmp case.default.0x54b1e1
call fcn.0054aa10
jmp case.default.0x54b1e1
cmp dword [0x5780ec], 0
je case.default.0x54b1e1
push 0x5780f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x578108]
test edi, edi
je 0x54b333
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x54b2b7
mov edi, dword [edi + 8]
test edi, edi
je 0x54b333
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x54b2b0
test esi, esi
je 0x54b2b0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x54b2b0
push 0x5780f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5780ec]
cmp eax, 1
jne case.default.0x54b1e1
mov eax, dword [0x578108]
test eax, eax
je 0x54b312
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x54b300
mov dword [0x578108], 0
mov dword [0x5780ec], 0
push 0x5780f0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x54b1e1
push 0x5780f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x54b470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x552004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x54b4d6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x54b4d6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x54b4d6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x54b4d6
mov edx, dword [esp + 0xc]
sub edx, dword [0x552004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x54b4c6
add esi, 0x28
dec ecx
je 0x54b4d6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x54b4c0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x54b4c0
mov eax, esi
pop esi
pop edi
ret
Function at 0x402d00
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x41a424], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.ARDOR_GAMING_Rabbit
call edi
movups xmm0, xmmword [0x41608c]
push 0x41a468
push 1
movups xmmword [0x41a468], xmm0
push 0
movups xmm0, xmmword [0x41609c]
movups xmmword [0x41a478], xmm0
movq xmm0, qword [0x4160ac]
movq qword [0x41a488], xmm0
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a48e], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a49e], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402efc
movups xmm0, xmmword [0x416074]
push str.4695579F_999A_41d4_9FAF_EFFCE93EBE19
movq xmm1, qword [0x4160ac]
movups xmm3, xmmword [0x41608c]
movups xmm2, xmmword [0x41609c]
movq qword [0x41a888], xmm1
movups xmmword [0x41a88e], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a89e], xmm0
movups xmm0, xmmword [0x41605c]
movq qword [0x41a688], xmm1
movups xmmword [0x41a68e], xmm0
movq xmm0, qword [0x41606c]
movups xmmword [0x41a868], xmm3
movups xmmword [0x41a878], xmm2
movups xmmword [0x41a668], xmm3
movups xmmword [0x41a678], xmm2
movq qword [0x41a69e], xmm0
call edi
mov ecx, esi
mov dword [0x41aa6c], eax
call fcn.00402f10
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41a868
push 0x41a668
push 0
mov dword [0x41aa68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402efc
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0
push eax
call esi
test eax, eax
je 0x402ee1
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402ed0
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x402eb0
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004043bd
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004043bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4036e0
Capabilities:
Create thread

Disassembly:
cmp dword [0x41a45c], 0
je 0x4036f2
cmp dword [0x41a458], 0
jne 0x40375c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a45c], eax
test eax, eax
je 0x40375c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a460], eax
test eax, eax
je 0x40375c
mov ecx, dword [0x41a45c]
push 0
push 0
push 0x41a44c
push 0x4031b0
mov dword [0x41a450], ecx
mov ecx, dword [0x41a464]
push 0
push 0
mov dword [0x41a454], ecx
mov dword [0x41a44c], eax
call fcn.00407681
add esp, 0x18
mov dword [0x41a458], eax
ret

Function at 0x403760
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x41a45c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4037c3
cmp dword [0x41a458], 0
je 0x4037b2
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push 1
push 0x41a458
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4037ad
cmp eax, 0x80
je 0x4037ad
push 0
push dword [0x41a458]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x41a45c]
test eax, eax
je 0x4037c3
push eax
call esi
mov dword [0x41a45c], 0
mov eax, dword [0x41a460]
test eax, eax
je 0x4037d9
push eax
call esi
mov dword [0x41a460], 0
mov eax, dword [0x41a458]
test eax, eax
je 0x4037ef
push eax
call esi
mov dword [0x41a458], 0
pop esi
ret

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

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

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1c306a6c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x36f83170
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x1003248d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003240f

Function at 0x10032d79
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10043720
push 0x10043718
push str.FlsAlloc
push 0x1e
call fcn.10032c17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10032dad
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c110]
call esi
jmp 0x10032db3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10032df7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10043730
push 0x10043728
push str.FlsGetValue
push 0x20
call fcn.10032c17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10032e2e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003572e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100357cb
push ebx
push esi
call fcn.100356f7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10035640
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10035778
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100357ca
push edi
push eax
call fcn.10030648
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10035798
call fcn.1003060e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100357c9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10035640
add esp, 0x20
test eax, eax
jne 0x100357b7
push edi
call fcn.1003060e
jmp 0x100357bf
push ebx
call fcn.1003060e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003b130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003b15d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003b15d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406840
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41fa9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4045dc
call fcn.004093d4
push 4
mov dword [esp + 0x18], 0
call fcn.0040ac86
mov edi, eax
add esp, 4
test edi, edi
je 0x4068b4
push ebx
call fcn.004091cf
mov dword [edi], eax
call fcn.00408f8e
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00409395
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068a8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004093bd
pop ebx
jmp 0x4068b6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b77e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4233dc]
jne 0x40b788
repz ret
jmp fcn.0041288c
Function at 0x41829b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4233dc]
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.0040e5b2
and dword [ebp - 0x14], 0
cmp dword [0x834034], 0
mov dword [ebp - 0x18], eax
jne 0x41834e
push 0x403ff0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4183f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fe4
push ebx
call edi
test eax, eax
je 0x4183f6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fd4
push ebx
mov dword [0x834034], eax
call edi
push eax
call esi
push 0x403fc0
push ebx
mov dword [0x834038], eax
call edi
push eax
call esi
push 0x403fa4
push ebx
mov dword [0x83403c], eax
call edi
push eax
call esi
mov dword [0x834044], eax
test eax, eax
je 0x41834e
push 0x403f8c
push ebx
call edi
push eax
call esi
mov dword [0x834040], eax
mov eax, dword [0x834040]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4183a7
cmp dword [0x834044], ecx
je 0x4183a7
push eax
call esi
push dword [0x834044]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4183a7
test ebx, ebx
je 0x4183a7
call edi
test eax, eax
je 0x41839e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41839e
test byte [ebp - 8], 1
jne 0x4183a7
or dword [ebp + 0x10], 0x200000
jmp 0x4183da
mov eax, dword [0x834038]
cmp eax, dword [ebp - 0x18]
je 0x4183da
push eax
call esi
test eax, eax
je 0x4183da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4183da
mov eax, dword [0x83403c]
cmp eax, dword [ebp - 0x18]
je 0x4183da
push eax
call esi
test eax, eax
je 0x4183da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x834034]
call esi
test eax, eax
je 0x4183f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4183f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b77e
leave
ret