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

Disassembly:
push 0xffffffffffffffff
push 0x4a5f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, 0x7fff
push ebx
mov word [esp + 8], ax
mov word [esp + 0xa], ax
push ebp
mov eax, 0xffff8001
push esi
push edi
mov word [esp + 0x18], ax
mov word [esp + 0x1a], ax
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x4dca40]
mov byte [esp + 0x48], 1
cmp eax, ebx
mov dword [esp + 0x24], ebx
je 0x46fab3
mov edx, dword [esp + 0x70]
push ebx
lea eax, [esp + 0x14]
mov edi, dword [esp + 0x64]
push ebx
lea ecx, [esp + 0x6c]
mov esi, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
push 2
push eax
push edi
push esi
call fcn.00482520
fstp st(0)
add esp, 0x30
jmp 0x46fad8
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x10]
push ecx
push edx
push 2
push eax
push edi
push esi
call fcn.00483e60
fstp st(0)
add esp, 0x18
mov eax, dword [esi + 8]
cmp di, bx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], edx
jle 0x46fb17
movsx edi, di
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004281b0
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x58], 2
call fcn.004384f0
add esp, 0x10
dec edi
mov byte [esp + 0x48], 1
jne 0x46faf1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
je 0x46fb2f
mov eax, dword [eax]
jmp 0x46fb31
xor eax, eax
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x2c], edi
je 0x46fb3f
mov eax, dword [edi]
jmp 0x46fb41
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
je 0x46fb5b
mov dword [esp + 0x38], edi
jmp 0x46fb60
mov byte [esp + 0x35], 1
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x24]
cmp dword [eax], ebx
je 0x46fbe5
cmp edi, dword [esp + 0x38]
jne 0x46fb80
cmp byte [esp + 0x3c], bl
jne 0x46fbe5
cmp byte [edi + 4], bl
je 0x46fb90
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x46fb98
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 4]
movsx eax, word [esp + 0x16]
mov dword [esp + 0x5c], eax
mov edx, dword [esi]
fild dword [esp + 0x5c]
push ecx
fstp dword [esp]
fild dword [edi + 0xc]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [edx + 0x34]
movsx eax, word [esp + 0x1a]
mov dword [esp + 0x5c], eax
mov edx, dword [esi]
fild dword [esp + 0x5c]
push ecx
fstp dword [esp]
fild dword [edi + 0xc]
push ecx
mov ecx, esi
fstp dword [esp]
call dword [edx + 0x38]
lea ecx, [esp + 0x24]
call fcn.004403e0
mov edi, dword [esp + 0x2c]
jmp 0x46fb6c
push fcn.00456390
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], bl
call fcn.0043fe20
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x477820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
lea eax, [esi + 0x5c]
push eax
call fcn.00426120
mov al, byte [0x4dc868]
mov bl, byte [esp + 0x48]
test al, al
je 0x47788f
test bl, bl
je 0x47787b
mov eax, dword [0x4dc33c]
test eax, eax
jne 0x47787b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0046eee0
add esp, 4
mov al, byte [0x4dc868]
test al, al
je 0x47788f
test bl, bl
je 0x47788f
mov eax, 1
jmp 0x477891
xor eax, eax
push eax
push 1
push 1
push 0
push 0
push esi
call fcn.0047d2d0
mov edx, dword [esp + 0x24]
add esp, 0x18
mov eax, dword [edx]
test eax, eax
je 0x4778b2
mov eax, dword [eax + 4]
jmp 0x4778b4
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [edx]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4778c7
mov ecx, dword [eax + 4]
jmp 0x4778c9
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x4778d7
mov dword [esp + 0x20], eax
jmp 0x4778dc
mov byte [esp + 0x1d], 1
mov byte [esp + 0x24], 0
cmp dword [edx], 0
je 0x477910
cmp eax, dword [esp + 0x20]
jne 0x4778f4
mov cl, byte [esp + 0x24]
test cl, cl
jne 0x477910
push eax
call fcn.00477990
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00440e40
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
jmp 0x4778e1
mov cl, byte [0x4dc868]
test cl, cl
je 0x47797c
test bl, bl
je 0x47797c
test eax, eax
mov esi, 2
je 0x47792d
mov dword [esp + 0x20], eax
jmp 0x477932
mov byte [esp + 0x1d], 1
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x24], 0
cmp dword [edx], 0
je 0x47797c
cmp eax, dword [esp + 0x20]
jne 0x477952
mov cl, byte [esp + 0x24]
test cl, cl
jne 0x47797c
push edi
push ebx
push esi
push eax
call fcn.0046f1f0
add esp, 0x10
inc esi
cmp esi, 7
jle 0x477969
mov esi, 2
lea ecx, [esp + 0xc]
call fcn.00440e40
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
jmp 0x47793f
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x477990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a64b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, 0x7fff
push esi
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
mov eax, 0xffff8001
push edi
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x74], 0
lea esi, [edi + 0x70]
mov ecx, esi
call fcn.0043ff80
push eax
lea ecx, [esp + 0x40]
call fcn.0042e460
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 1
call fcn.0040f9a0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x477a05
mov dword [esp + 0x34], eax
jmp 0x477a0a
mov byte [esp + 0x31], 1
mov byte [esp + 0x38], 0
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0
je 0x477a85
cmp eax, dword [esp + 0x34]
jne 0x477a26
mov cl, byte [esp + 0x38]
test cl, cl
jne 0x477a85
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
movsx ecx, word [esp + 0x14]
movsx edx, word [esp + 0x10]
add ecx, edx
movsx eax, word [esp + 0x12]
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
fmul qword [0x4a8220]
fstp dword [esp + 0x18]
fild dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.0042e4e0
lea ecx, [esp + 0x20]
call fcn.004403e0
mov eax, dword [esp + 0x28]
jmp 0x477a0f
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0042e520
mov al, byte [esp + 0x3c]
test al, al
je 0x477aa6
fld dword [esp + 0x64]
jmp 0x477aac
fld dword [0x4a8608]
fld dword [esp + 8]
fstp dword [edi + 0x80]
fld dword [esp + 0xc]
fstp dword [edi + 0x84]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 0
fstp dword [edi + 0x88]
call fcn.0042e4b0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x47c350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a66e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, 0x7fff
push ebp
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov eax, 0xffff8001
push esi
push edi
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
mov edi, dword [esp + 0x94]
mov dword [esp + 0x88], 0
lea esi, [edi + 0x70]
mov ecx, esi
call fcn.0043ff80
push eax
lea ecx, [esp + 0x54]
call fcn.0042e460
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 1
call fcn.0040f9a0
mov eax, dword [esp + 0x3c]
xor ebp, ebp
test eax, eax
je 0x47c3d1
mov dword [esp + 0x48], eax
jmp 0x47c3d6
mov byte [esp + 0x45], 1
mov byte [esp + 0x4c], 0
mov ecx, dword [esp + 0x34]
cmp dword [ecx], 0
je 0x47c460
cmp eax, dword [esp + 0x48]
jne 0x47c3f2
mov cl, byte [esp + 0x4c]
test cl, cl
jne 0x47c460
mov edx, dword [eax + 4]
shr edx, 0x1e
test dl, 1
jne 0x47c44e
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
movsx eax, word [esp + 0x28]
movsx ecx, word [esp + 0x24]
add eax, ecx
movsx edx, word [esp + 0x26]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul qword [0x4a8220]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.0042e4e0
inc ebp
lea ecx, [esp + 0x34]
call fcn.004403e0
mov eax, dword [esp + 0x3c]
jmp 0x47c3db
mov eax, dword [esp + 0x90]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x58]
call fcn.0042e7d0
mov al, byte [esp + 0x50]
test al, al
je 0x47c484
fld dword [esp + 0x78]
jmp 0x47c48a
fld dword [0x4a8608]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x90]
fst dword [esp + 0x10]
fstp dword [edi + 0x90]
mov eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [edi + 0x8c], eax
mov ecx, dword [0x4cb078]
mov dword [esp + 0x14], edx
mov edx, dword [0x4cb07c]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov dword [esp + 0x30], edx
call fcn.0043ff80
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld dword [esp + 0x10]
fmul qword [esp + 0x2c]
fsubp st(1)
fstp dword [edi + 0x98]
fld dword [esp + 0x1c]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
fadd dword [0x4a8248]
fsqrt
fdivp st(1)
fstp dword [edi + 0x94]
mov al, byte [0x4dc7f8]
test al, al
je 0x47c525
cmp ebp, dword [0x4cb3d0]
jle 0x47c525
lea eax, [esp + 0xc]
lea ecx, [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.0042e520
mov al, byte [esp + 0x50]
test al, al
je 0x47c533
fld dword [esp + 0x78]
jmp 0x47c539
fld dword [0x4a8608]
fld dword [esp + 0x90]
fstp dword [edi + 0x80]
fld dword [esp + 0xc]
fstp dword [edi + 0x84]
lea ecx, [esp + 0x50]
mov byte [esp + 0x88], 0
fstp dword [edi + 0x88]
call fcn.0042e4b0
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x80
ret
Function at 0x486a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a6a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov bl, byte [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov ecx, dword [esi + 0x18]
test bl, bl
mov eax, dword [ecx + 0x14]
mov dword [esp + 0xc], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x10], ecx
je 0x486aa0
mov dl, byte [0x4dcba0]
test dl, dl
je 0x486aa0
movsx edx, word [esp + 0x12]
push edx
movsx edx, word [esp + 0x12]
movsx ecx, cx
movsx eax, ax
push ecx
push edx
push eax
push ebp
push 0x4c61a4
call fcn.00443600
add esp, 0x18
fld dword [esi + 0x30]
fmul qword [0x4dd308]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x30]
mov dword [esi + 0x40], eax
fmul qword [0x4dd2e8]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
call sub.MSVCRT.dll__ftol
fild dword [esi + 0x40]
mov dword [esp + 0x34], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x5c]
fstp dword [esi + 0x3c]
fild dword [esp + 0x34]
test eax, eax
fstp dword [esi + 0x38]
fld dword [esi + 0x30]
fmul qword [0x4dd228]
fst dword [esi + 0x54]
fmul qword [0x4dd1d8]
fstp dword [esi + 0x50]
je 0x486ba7
fld dword [esi + 0x30]
fcomp dword [0x4a8234]
fnstsw ax
test ah, 0x41
je 0x486b45
push 0x16a
push 0x4c6164
push 0x4b1640
push 0
push 0x4c6150
push 0x4dcbfc
call fcn.00441210
add esp, 0x18
mov al, byte [0x4dd3b8]
test al, al
je 0x486b6e
mov al, byte [0x4dd428]
test al, al
je 0x486b62
test bl, bl
je 0x486b62
mov eax, 1
jmp 0x486b64
xor eax, eax
push eax
push esi
call fcn.0048a420
add esp, 8
mov al, byte [0x4dd428]
test al, al
je 0x486b86
test bl, bl
je 0x486b86
push 1
call dword [0x4c855c]
add esp, 4
mov al, byte [0x4dcba0]
test al, al
je 0x486b9a
test bl, bl
je 0x486b9a
mov eax, 1
jmp 0x486b9c
xor eax, eax
push eax
push ebp
push esi
call fcn.00486bc0
add esp, 0xc
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48c8f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a6d38
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
push 5
mov dword [esp + 0x1c], 0
call fcn.00441650
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push edi
push ebp
push esi
push ebx
call fcn.00477660
mov eax, dword [0x4cae10]
add esp, 0x14
fstp dword [esp + 0x2c]
test eax, eax
je 0x48c950
mov byte [eax + 5], 1
mov eax, dword [0x4cae10]
mov word [eax + 2], 0x14
push 6
call fcn.00441650
mov ecx, dword [esp + 0x30]
push edi
push ebp
push esi
push ecx
push ebx
call fcn.004969d0
mov eax, dword [0x4cae10]
add esp, 0x18
test eax, eax
je 0x48c981
mov byte [eax + 5], 1
mov edx, dword [0x4cae10]
mov word [edx + 2], 0x1e
push esi
call fcn.0048c9c0
add esp, 4
call fcn.0046efe0
mov al, byte [0x4dcd48]
test al, al
je 0x48c9a9
mov al, byte [0x4caf20]
test al, al
jne 0x48c9a9
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4984e0
Capabilities:
Create thread
Query environment variable

Disassembly:
sub esp, 0x334
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push edi
push 0x4c85cc
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x49851a
lea ecx, [esp + 0x20]
push ecx
push 0x4bb130
push eax
call ebx
add esp, 0xc
cmp eax, 1
je 0x498522
mov dword [esp + 0x20], 0xb00000
push 0x4c85c0
call esi
add esp, 4
cmp eax, edi
je 0x498545
lea edx, [esp + 0x24]
push edx
push 0x4bb130
push eax
call ebx
add esp, 0xc
cmp eax, 1
je 0x49854d
mov dword [esp + 0x24], 0x200000
lea eax, [esp + 0x34]
push eax
call fcn.004987b0
add esp, 4
test al, al
jne 0x49865e
push edi
push 0x8010c
push edi
lea ecx, [esp + 0x34]
push 4
push ecx
push 0xffffffffffffffff
mov dword [0x4dfe54], 0x80000
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [0x4dfe48], eax
jne 0x4985af
mov dword [0x4dfe4c], edi
pop edi
pop esi
pop ebx
add esp, 0x334
ret
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [0x4dfe4c], eax
je 0x498735
mov edx, dword [0x4dfe54]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [eax + edx + 4], edi
mov eax, dword [0x4dfe4c]
mov ecx, dword [0x4dfe54]
mov dword [eax + ecx + 8], edi
mov edx, dword [0x4dfe48]
push edx
lea eax, [esp + 0x38]
push 0x4bb130
push eax
call esi
mov ecx, dword [0x4dfe4c]
add esp, 0xc
lea edx, [esp + 0x138]
push ecx
push 0x4c85bc
push edx
call esi
mov eax, dword [0x4dfe54]
add esp, 0xc
lea ecx, [esp + 0x23c]
push eax
push 0x4bb130
push ecx
call esi
lea edx, [esp + 0x40]
mov eax, 0x4c85b0
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x144]
lea edx, [esp + 0x248]
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
jmp 0x4986e4
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
lea eax, [esp + 0x34]
push eax
push 0x4c85a8
add ecx, 0x40
push 0x4c8574
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
push 0x4c2160
mov dword [0x4dfe48], edi
mov dword [0x4dfe4c], 0x4dd540
mov dword [0x4dfe54], 0x2000
call esi
mov edx, dword [0x4dfe54]
add esp, 0x14
push eax
push edx
push 0x4c85b0
lea eax, [esp + 0x144]
push 0x4c8564
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, 0x4c85a8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x14c]
add esp, 0x14
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
lea ecx, [esp + 0xc]
push 0x4dfe40
push ecx
push eax
mov dword [0x4dfe50], edi
call fcn.00498a80
add esp, 0xc
test eax, eax
je 0x498710
call fcn.00498740
pop edi
pop esi
pop ebx
add esp, 0x334
ret
push edi
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0x4dfe40
push edi
push 0x4973c0
mov dword [0x4dd538], eax
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x334
ret
Function at 0x4987b0
Capabilities:
Query environment variable

Disassembly:
push 0x4c2160
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x498812
push ebx
push esi
push edi
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x10]
push 0x3a
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
call esi
add esp, 8
test eax, eax
je 0x4987fd
mov byte [eax], 0
push 0x2e
push ebx
call esi
add esp, 8
test eax, eax
pop edi
pop esi
pop ebx
je 0x49880f
mov byte [eax], 0
mov al, 1
ret
xor al, al
ret
Function at 0x498880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x34
push ebx
mov bl, byte [esp + 0x3c]
push esi
cmp bl, 3
push edi
jne 0x4988a7
call fcn.00497650
dec word [0x4dfe5a]
call fcn.00497660
pop edi
pop esi
pop ebx
add esp, 0x34
ret
mov eax, dword [0x4dfe4c]
xor edi, edi
cmp eax, edi
je 0x498a74
mov ecx, dword [0x4dfe50]
cmp ecx, edi
jle 0x498959
mov edx, dword [0x4dfe54]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov dword [edx + eax], ecx
mov ecx, dword [0x4dfe44]
lea eax, [esp + 0x10]
push eax
push 2
push 0x4c85dc
push ecx
call esi
test eax, eax
je 0x498932
cmp dword [esp + 0xc], 2
jne 0x498932
cmp dword [0x4dfe48], edi
jne 0x49893e
mov eax, dword [0x4dfe50]
mov ecx, dword [0x4dfe4c]
lea edx, [esp + 0xc]
push edi
push edx
mov edx, dword [0x4dfe44]
push eax
push ecx
push edx
call esi
test eax, eax
je 0x498932
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4dfe50]
cmp eax, ecx
jne 0x498932
mov dword [0x4dfe50], edi
jmp 0x498948
call fcn.00498740
pop edi
pop esi
pop ebx
add esp, 0x34
ret
mov dword [0x4dfe50], 0xffffffff
call fcn.00497650
inc word [0x4dfe5a]
call fcn.00497660
mov ax, word [0x4dfe5a]
cmp bl, 1
je 0x49897f
cmp ax, 0xff
jg 0x49897f
cmp bl, 2
jne 0x498a74
cmp dword [0x4dfe48], edi
je 0x498a74
cmp ax, di
jle 0x498a66
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4c8560], eax
jne 0x498a50
mov eax, dword [0x4dfe40]
lea ecx, [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x50]
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498a58
cmp dword [esp + 0x14], 2
jne 0x498a58
mov ecx, dword [0x4dfe54]
mov edx, dword [0x4dfe4c]
mov eax, dword [ecx + edx + 8]
mov esi, eax
shl esi, 4
add esi, ecx
inc eax
cmp eax, 0x10
lea esi, [esi + edx + 0xc]
mov ebx, esi
mov esi, dword [ebx]
mov dword [esp + 0x18], esi
mov esi, dword [ebx + 4]
mov dword [esp + 0x1c], esi
mov ebp, dword [ebx + 8]
mov dword [esp + 0x20], ebp
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x24], ebx
jl 0x498a07
xor eax, eax
mov dword [ecx + edx + 8], eax
mov al, byte [esp + 0x1e]
test al, al
je 0x498a47
mov cl, byte [esp + 0x1f]
mov edx, dword [esp + 0x20]
mov byte [esp + 0x33], cl
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
mov word [esp + 0x34], si
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], edi
call fcn.004974d0
add esp, 4
jmp 0x498a58
dec word [0x4dfe5a]
jmp 0x498a58
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [0x4dfe5a], di
jg 0x498989
pop ebp
cmp dword [0x4dfe50], edi
jge 0x498a74
mov dword [0x4dfe50], edi
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x498a80
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Resume thread

Disassembly:
sub esp, 0x278
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push edi
push 0x2000
push 0
push eax
push ecx
call esi
test eax, eax
je 0x498c55
push 0x2000
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
call esi
test eax, eax
je 0x498c55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 1
push 1
lea ecx, [esp + 0x14]
mov esi, eax
push 0x80000000
push ecx
push esi
push edx
push esi
call edi
test eax, eax
je 0x498c55
mov ecx, dword [esp + 0x20]
push 1
push 1
lea eax, [esp + 0x18]
push 0x40000000
push eax
push esi
push ecx
push esi
call edi
test eax, eax
je 0x498c55
push ebp
mov ebp, dword [esp + 0x28c]
mov byte [esp + 0x7c], 0
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
test edx, edx
je 0x498ba8
push ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x498b66
mov edi, 0x4b20c4
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebp, 4
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
inc edx
mov dword [esp + 0x10], edx
mov edx, dword [ebp]
test edx, edx
rep movsb byte es:[edi], byte [esi]
jne 0x498b2d
pop ebx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push 0
push 0x8000004
mov dword [esp + 0x88], edx
push 1
push 0
lea edx, [esp + 0x98]
push 0
push edx
push 0
mov word [esp + 0x90], 0
mov dword [esp + 0x8c], 0x100
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop ebp
je 0x498c55
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov eax, dword [esp + 0x28c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
xor eax, eax
pop esi
add esp, 0x278
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x278
ret