joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4392e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4744b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x439319
inc eax
mov dword [esi + 0x10], eax
jmp 0x43942c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43932d
mov eax, 0xffffffc7
jmp 0x43942e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43933e
cmp dword [esi + 8], eax
jne 0x43932d
cmp dword [esi + 8], eax
jne 0x439357
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x439357
mov eax, 0xffffffc7
jmp 0x43942e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43936b
push eax
mov ecx, ebx
call fcn.00438b10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00404470
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43939c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404490
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00438280
test eax, eax
mov dword [esp + 0x38], eax
je 0x4393cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57d968
call fcn.00404670
mov eax, dword [esp + 0x38]
jmp 0x43942e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00439140
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x439413
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00439160
mov esi, eax
test esi, esi
jne 0x439443
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00439140
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4393e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57d968
call fcn.00404670
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57d968
call fcn.00404670
mov eax, esi
jmp 0x43942e
Function at 0x442550
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4764bc]
push 0
lea ecx, [esp + 0x20]
call fcn.0046cadd
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00441ef0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046ca0b
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004692cf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004692cf
push 1
push 0
push 0
mov ecx, esi
call fcn.00469277
push 1
push 0
push 1
mov ecx, esi
call fcn.00469277
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046cb4f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4426d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046cadd
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00441ef0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046ca0b
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4764bc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442794
cmp dword [esp + 0x40], 1
jne 0x442792
cmp ecx, eax
jge 0x442794
mov eax, ecx
cmp eax, 0xc8
jge 0x4427a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442550
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4764b8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046cb4f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x442f10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474b73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004676ed
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x5826f8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x5810a0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x47605c]
push eax
mov ecx, edi
call fcn.0046cd85
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e3de
test eax, eax
je 0x44302c
mov ecx, dword [esp + 0x3c]
call fcn.0046cdb2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4764dc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x442ff0
push edi
mov ecx, esi
call fcn.0046a416
mov ecx, esi
call fcn.00443190
cmp dword [esp + 0x38], 1
jne 0x443025
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046a551
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x445a60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445a93
push esi
call fcn.00448b60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x445a8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x445b19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445b02
mov eax, dword [esi + 8]
test eax, eax
je 0x445ab7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x445afe
cmp eax, 2
je 0x445b02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x445aaa
cmp eax, 3
je 0x445add
cmp eax, 1
jne 0x445aaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x445aaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x445aaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445b40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445b28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445b40
add esp, 4
pop esi
ret
Function at 0x406cbe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x428094], 0
jne 0x406cfc
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406cd2
mov dword [ecx*4 + 0x428090], eax
inc ecx
cmp ecx, 0x100
jl 0x406ccd
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d29
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x428090]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d0a
not eax
pop ebp
ret 0xc

Function at 0x10010e1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x100109c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x1001123
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100107c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.010010c8
jmp 0x1001143
push 0x1001074
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001141
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001050
jmp 0x1001105
call eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403fca
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x47f32c]
mov dword [0x47f474], eax
mov edx, dword [0x47f340]
push dword [0x47f99c]
call fcn.0040b9e0
lea ecx, [0x47f478]
pop edx
call fcn.00407070
push dword [0x47f478]
call fcn.00407220
mov ebx, eax
inc ebx
mov dword [0x47f47c], ebx
push dword [0x47f474]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x47f480], eax
cmp dword [0x47f480], 0
je 0x404150
push 4
push 0x1000
push dword [0x47f47c]
push 0
push dword [0x47f480]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x47f484], eax
cmp dword [0x47f484], 0
je 0x404145
push 0x47f488
push dword [0x47f47c]
push dword [0x47f478]
push dword [0x47f484]
push dword [0x47f480]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x47f488]
cmp ebx, dword [0x47f47c]
jl 0x404129
push str.Kernel32.dll
push 0
call fcn.00408854
and eax, eax
je 0x404129
push 0x422388
push 0
call fcn.00408891
mov dword [0x47f48c], eax
push 0
call fcn.004087e5
cmp dword [0x47f48c], 0
je 0x404129
push 0
push 0
push dword [0x47f484]
push dword [0x47f48c]
push 0
push 0
push dword [0x47f480]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x47f490], eax
cmp dword [0x47f490], 0
je 0x404129
push 0xffffffff
push dword [0x47f490]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x47f30c
push dword [0x47f490]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x47f47c]
push dword [0x47f484]
push dword [0x47f480]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x47f480]
call sub.KERNEL32.dll_CloseHandle
push dword [0x47f340]
call fcn.0040ae4e
mov dword [0x47f30c], eax
ret

Function at 0x407a03
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x407a1b
push dword [esp + 4]
push 0x40799c
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x407a58
push esi
mov esi, dword [0x47f7d0]
test esi, esi
je 0x407a57
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x407a4f
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x47f7d0
call fcn.0040b8b1
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x407a28
pop edi
pop ebx
pop esi
ret 4
Function at 0x40ad54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40adc2
push 0x11
call esi
test al, al
js 0x40adc2
push 0x10
call esi
test al, al
js 0x40adc2
push 0x12
call esi
test al, al
js 0x40adc2
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40adc2
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x40ade6
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x40ade6
dec eax
push eax
push dword [0x47fb98]
call fcn.0040b6f5
mov eax, dword [eax + 0xc]
jmp 0x40ade8
xor eax, eax
pop esi
leave
ret 4

Function at 0x40ae60
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x40ae7f
cmp dword [esp + 8], eax
je 0x40ae7f
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40ae81
xor eax, eax
ret 8

Function at 0x40ae90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x40aec5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40b150
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x40b1a9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40b1a8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x47fba8]
push eax
push ecx
call fcn.0040b6f5
test eax, eax
je 0x40b1a4
cmp dword [eax + 4], 0
je 0x40b192
push esi
push edi
push eax
call fcn.0040b480
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x40b1b0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x47fba8]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0040b6f5
test eax, eax
je 0x40b1fa
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x40b1e7
push 1
push edx
push eax
call fcn.0040b570
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x40b210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.0040bc20
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x47fba8]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0040b6f5
mov ebx, eax
test ebx, ebx
je 0x40b32e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x40b26e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040b570
mov dword [esp + 0x14], eax
jmp 0x40b285
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x40b297
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x40b2c1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.0040bc20
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x40b32d
cmp dword [esp + 0x14], 0
je 0x40b2d8
cmp al, 0xd
je 0x40b2d8
cmp al, 0xa
jne 0x40b250
sub ebp, 1
cmp al, 0xd
jne 0x40b32d
cmp dword [ebx + 4], 0
je 0x40b2f4
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040b570
jmp 0x40b30b
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40b32d
cmp dword [ebx + 4], 0
je 0x40b31e
add dword [ebx + 0xc], 1
jmp 0x40b32d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.0040bd00
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40b480
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40b4a2
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40b51b
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x40b508
sub ecx, 1
je 0x40b4f3
sub ecx, 2
je 0x40b4e0
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040ae90
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40b548
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x40b570
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x40b591
push esi
call fcn.0040ae90
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x40b60a
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x40b5f7
sub ecx, 1
je 0x40b5e2
sub ecx, 2
je 0x40b5cf
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x40b653
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x40b676
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x1002694
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.0100265b
or dword [ebp - 4], 0xffffffff
mov esi, 0x105
push esi
mov dword [ebp - 0x10], esi
call fcn.01002ab1
push esi
mov edi, eax
call fcn.01002ab1
pop ecx
pop ecx
mov ebx, eax
test edi, edi
je 0x100280e
test ebx, ebx
je 0x1002803
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002530
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002803
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002803
cmp dword [ebp - 0xc], 2
jne 0x100272f
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1002803
cmp dword [ebp - 0xc], 2
mov eax, ebx
je 0x1002731
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 8], eax
call fcn.01002adf
push ebx
call fcn.01002adf
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
je 0x1002764
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 0x100256c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10027d2
push 0x1002588
push eax
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10027d2
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01002ab1
mov edi, eax
pop ecx
test edi, edi
je 0x10027d2
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x10027cb
push esi
push edi
call dword [ebp - 0x14]
push edi
call fcn.01002adf
pop ecx
cmp dword [ebp - 8], 0
je 0x1002819
push 0x10025a4
push dword [ebp - 8]
call ebx
test eax, eax
je 0x10027f4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x100280e
push edi
call fcn.01002adf
pop ecx
test ebx, ebx
je 0x1002819
push ebx
call fcn.01002adf
pop ecx
cmp dword [ebp - 4], 0xffffffff
pop edi
pop esi
pop ebx
je 0x100282b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret 0x10