joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402760
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.ww777wd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40279e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x40280b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x407ac4
call section..text
add esp, 4
push eax
push 0x404e30
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x402866
push 0x6ddd00
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402850
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x247f6820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x2480a348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.247f1040
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esi], 0x2480b730
je 0x247f6860
mov ecx, dword [eax]
push eax
mov dword [esi + 0x10], eax
call dword [ecx + 4]
mov al, byte [esi + 0x84]
mov ecx, dword [esp + 0xc]
and al, 0xf0
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov word [esi + 0x6c], di
mov byte [esi + 0x84], al
mov dword [esi + 0x68], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 4], 0x2480b1e8
mov word [esi + 0x6e], 0xef
mov word [esi + 0x70], 0x41
mov word [esi + 0x72], 0x40
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4

Function at 0x247fb5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x2480a5c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.247f1040
push fcn.247faa00
push fcn.247fa9c0
push 2
lea eax, [esi + 0x3c]
xor edi, edi
push 0x2c
push eax
mov dword [esp + 0x28], edi
mov dword [esi + 0x20], 0x2480b390
call fcn.24804a90
mov al, byte [esi + 0x14]
mov ecx, dword [esp + 0xc]
or al, 8
mov dword [esi + 0x30], edi
mov byte [esi + 0x14], al
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], edi
mov word [esi + 0x38], di
mov dword [esi + 0x28], edi
mov dword [esi], 0x2480bb10
mov dword [esi + 0x20], 0x2480bb08
mov dword [esi + 4], 0x2480b268
mov byte [esi + 0x94], 3
mov dword [esi + 0x90], esi
mov dword [esi + 0x64], esi
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x24802c80
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov eax, dword [esp + 8]
push esi
sub eax, 0
je 0x24802d09
dec eax
je 0x24802ce7
sub eax, 2
jne 0x24802d32
mov eax, dword [0x24811908]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x24802d32
mov eax, dword [esi + 8]
test eax, eax
je 0x24802cbc
push eax
call fcn.248033a0
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x24802cc8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x24802cd5
mov edx, dword [eax]
push eax
call dword [edx + 8]
push esi
call fcn.248033a0
add esp, 4
mov eax, 1
pop esi
ret 0xc
mov eax, dword [esp + 8]
mov dword [0x2481190c], eax
call fcn.247f4bf0
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x24811908], eax
mov eax, 1
pop esi
ret 0xc
mov eax, dword [0x24811920]
test eax, eax
je 0x24802d21
cmp eax, dword [0x2481190c]
je 0x24802d21
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [0x24811908]
cmp eax, 0xffffffff
je 0x24802d32
push eax
call dword [sym.imp.kernel32.dll_TlsFree]
mov eax, 1
pop esi
ret 0xc

Function at 0x24802d40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x2480a71b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x24811908]
push ebx
cmp eax, 0xffffffff
push esi
je 0x24802e01
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x24802e2a
push 0x10
call fcn.248033b0
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
cmp esi, ebx
mov dword [esp + 0x14], ebx
je 0x24802dba
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
call fcn.247f4c70
test al, al
je 0x24802dbc
push pe_nt_image_headers32
call fcn.248033b0
add esp, 4
mov dword [esi + 8], eax
jmp 0x24802dbc
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x14], 0xffffffff
je 0x24802de8
mov eax, dword [0x24811908]
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [0x24811918]
mov esi, 0x24811910
cmp eax, ebx
jne 0x24802e2a
call fcn.247f4c70
test al, al
je 0x24802e2a
jmp 0x24802e18
mov eax, dword [0x24811918]
mov esi, 0x24811910
test eax, eax
jne 0x24802e2a
call fcn.247f4c70
test al, al
je 0x24802e2a
push pe_nt_image_headers32
call fcn.248033b0
add esp, 4
mov dword [0x24811918], eax
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x24803080
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
mov ecx, dword [0x2481190c]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x24]
push 0x100
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.247f2a30
lea edx, [esp + 0x14]
mov esi, eax
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
mov dword [esp + 0x18], eax
jl 0x248030dc
mov eax, dword [esp + 0x14]
push 0
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x248030ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov esi, 0x2480bb90
mov dword [esp + 0x20], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ax, word [edx]
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0x2481192c
push 0
push str.CLSID8B2177xx_717D_11CE_AB5B_D41203C10000InprocServer32
push SysReAllocStringLen
mov word [0x2480e3ad], ax
call ebp
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 1
push 0
push 0
push edx
call edi
push 0xa
push str.Apartment
mov eax, dword [esp + 0x18]
push 1
push 0
push str.ThreadingModel
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
add esi, 4
cmp esi, 0x2480bba0
jb 0x2480310d
mov byte [0x2480e3cc], 0
xor esi, esi
mov edx, dword [esi + 0x2480bb90]
lea ecx, [esp + 0x1c]
push ecx
mov ax, word [edx]
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
mov word [0x2480e3ad], ax
mov eax, dword [esi + 0x2480bba0]
push 0
push 0x2481192c
push 0
push eax
push SysReAllocStringLen
call ebp
push 0x27
push 0x2480e3a6
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebx
add esi, 4
cmp esi, 0xc
jb 0x24803187
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x248031f0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 1
push 0
push 0
push 1
push 0x2480b108
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, 0x2480bb90
mov eax, dword [esi]
push str.CLSID8B2177xx_717D_11CE_AB5B_D41203C10000InprocServer32
push SysReAllocStringLen
mov cx, word [eax]
mov word [0x2480e3ad], cx
call ebx
push str.CLSID8B2177xx_717D_11CE_AB5B_D41203C10000InprocServer32
push SysReAllocStringLen
mov byte [0x2480e3cc], 0
call ebx
mov dl, byte [0x2480e454]
add esi, 4
cmp esi, 0x2480bba0
mov byte [0x2480e3cc], dl
jb 0x24803215
mov ebp, 0x2480bba0
mov eax, dword [ebp]
push eax
push SysReAllocStringLen
call ebx
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, dword [ebp]
sub eax, 6
mov ecx, eax
lea edi, [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push eax
push SysReAllocStringLen
call ebx
add ebp, 4
cmp ebp, 0x2480bbac
jb 0x2480325c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret

Function at 0x24803fd0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x24804094
call dword [sym.imp.kernel32.dll_GetVersion]
mov dword [0x248119e0], eax
call fcn.24806890
test eax, eax
jne 0x24803ff4
ret 0xc
mov ecx, dword [0x248119e0]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x248119ec], edx
mov dword [0x248119e8], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x248119e4], eax
mov dword [0x248119e0], ecx
call fcn.24804da0
test eax, eax
jne 0x24804036
call fcn.248068d0
xor eax, eax
ret 0xc
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x24813018], eax
call fcn.24806730
mov ecx, dword [0x24813018]
mov dword [0x24811934], eax
test ecx, ecx
je 0x24804085
test eax, eax
je 0x24804085
call fcn.24805c10
call fcn.24806720
call fcn.24805f70
call fcn.24805e80
call fcn.24805890
mov eax, dword [0x24811930]
inc eax
mov dword [0x24811930], eax
mov eax, 1
ret 0xc
call fcn.24804e00
call fcn.248068d0
xor eax, eax
ret 0xc
test eax, eax
jne 0x248040d4
mov eax, dword [0x24811930]
test eax, eax
jle 0x248040cf
mov ecx, eax
mov eax, dword [0x24811a18]
dec ecx
test eax, eax
mov dword [0x24811930], ecx
jne 0x248040b8
call fcn.248058e0
call fcn.24805e20
call fcn.24804e00
call fcn.248068d0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x248040e3
push 0
call fcn.24804ed0
add esp, 4
mov eax, 1
ret 0xc
Function at 0x24804da0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.24805660
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x2480e480], eax
je 0x24804df8
push 0x74
push 1
call fcn.24807430
mov esi, eax
add esp, 8
test esi, esi
je 0x24804df8
mov eax, dword [0x2480e480]
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x24804df8
push esi
call fcn.24804e30
add esp, 4
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x24804e50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x2480e480]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x24804ebe
push 0x74
push 1
call fcn.24807430
mov esi, eax
add esp, 8
test esi, esi
je 0x24804eb4
mov ecx, dword [0x2480e480]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x24804eb4
push esi
call fcn.24804e30
add esp, 4
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.248041a0
add esp, 4
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x24804ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x2480e480]
cmp eax, 0xffffffff
je 0x24804f7f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x24804ef4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x24804f70
mov eax, dword [esi + 0x24]
test eax, eax
je 0x24804f04
push eax
call fcn.248041e0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x24804f14
push eax
call fcn.248041e0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x24804f24
push eax
call fcn.248041e0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x24804f34
push eax
call fcn.248041e0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x24804f44
push eax
call fcn.248041e0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x24804f54
push eax
call fcn.248041e0
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x24810888
je 0x24804f67
push eax
call fcn.248041e0
add esp, 4
push esi
call fcn.248041e0
add esp, 4
mov eax, dword [0x2480e480]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x248058f0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.248059b0
mov eax, dword [0x24811a1c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x24805914
push ebp
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x24811a18], 1
mov byte [0x24811a14], bl
jne 0x2480596e
mov ecx, dword [0x24813008]
test ecx, ecx
je 0x2480595c
mov esi, dword [0x24813004]
sub esi, 4
cmp esi, ecx
jb 0x2480595c
mov eax, dword [esi]
test eax, eax
je 0x24805955
call eax
mov ecx, dword [0x24813008]
sub esi, 4
cmp esi, ecx
jae 0x24805947
push 0x2480e028
push 0x2480e020
call fcn.248059d0
add esp, 8
push 0x2480e034
push 0x2480e02c
call fcn.248059d0
add esp, 8
test ebx, ebx
je 0x2480598d
call fcn.248059c0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x24811a1c], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x24806730
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x24811d4c]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x24806772
call edi
mov esi, eax
test esi, esi
je 0x2480675c
mov eax, 1
jmp 0x2480676d
call ebp
mov ebx, eax
test ebx, ebx
je 0x2480687f
mov eax, 2
mov dword [0x24811d4c], eax
cmp eax, 1
jne 0x24806812
test esi, esi
jne 0x2480678b
call edi
mov esi, eax
test esi, esi
je 0x2480687f
cmp word [esi], 0
mov eax, esi
je 0x248067a5
add eax, 2
cmp word [eax], 0
jne 0x24806793
add eax, 2
cmp word [eax], 0
jne 0x24806793
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x24806804
push edi
call fcn.24804250
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x24806804
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x248067f6
push ebx
call fcn.248041e0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x2480687f
test ebx, ebx
jne 0x24806823
call ebp
mov ebx, eax
test ebx, ebx
je 0x2480687f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x2480683b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x2480682b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x2480682b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.24804250
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x2480685d
push ebx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x24806950
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x2480e7d0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x24806974
add eax, 8
inc ebp
cmp eax, 0x2480e860
jb 0x24806965
cmp ecx, dword [ebp*8 + 0x2480e7d0]
jne 0x24806b1b
mov eax, dword [0x2481193c]
cmp eax, 1
je 0x24806add
test eax, eax
jne 0x248069a0
cmp dword [0x24811940], 1
je 0x24806add
cmp ecx, 0xfc
je 0x24806b1b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x248069db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x24806a24
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x2480bff8
add ebx, ecx
push ebx
call fcn.24807500
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x2480bfd8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
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
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x2480e7d4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
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
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.248089a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x24812f00]
test eax, eax
je 0x24806aee
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x24806af8
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x2480e7d4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x248094a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x248094cc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x24812f00]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x24809507
push 2
push ebp
push ecx
call fcn.24809ec0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x24809669
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x248095b1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x24809562
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x2480954f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x24809532
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x2480965a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x248095ad
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x2480952e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x24809649
mov eax, dword [esp + 0x18]
test eax, eax
je 0x24809605
cmp eax, 5
jne 0x248095ee
call fcn.248092b0
mov dword [eax], 9
call fcn.248092c0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.24809230
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x24809625
cmp byte [ebp], 0x1a
jne 0x24809625
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.248092b0
mov dword [eax], 0x1c
call fcn.248092c0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x248095ad
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x2480969a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x248095b1
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x248095b1