joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4435d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443603
push esi
call fcn.004466d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4435fc
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 0x443689
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443672
mov eax, dword [esi + 8]
test eax, eax
je 0x443627
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 0x44366e
cmp eax, 2
je 0x443672
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44361a
cmp eax, 3
je 0x44364d
cmp eax, 1
jne 0x44361a
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 0x44361a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44361a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004436b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443698
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004436b0
add esp, 4
pop esi
ret

Function at 0x44f4e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44f583
test eax, eax
jbe 0x44f583
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44f583
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44f52e
xor esi, esi
jmp 0x44f534
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44f55f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00451570
add esi, eax
push esi
mov ebx, esi
call fcn.00451570
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44f540
pop ebp
test edi, edi
pop edi
jne 0x44f583
test ebx, ebx
je 0x44f583
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00469be0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44f6c5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44f7dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44f7dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047b371
mov esi, eax
test esi, esi
je 0x44f7dd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44f7dd
mov ecx, esi
call fcn.0044f630
cmp edi, eax
jge 0x44f7dd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44f763
mov dword [esp + 0x34], 1
jmp 0x44f7be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44f7dd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044ebf0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x454630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x664058]
xor edx, edx
cmp eax, edx
jne 0x454656
xor eax, eax
mov byte [eax + 0x663f58], al
inc eax
cmp eax, 0x100
jl 0x45463e
mov dword [0x664058], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x663f58
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4546e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4546ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x454688
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4546f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x454743
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45472a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45b0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487fae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0045ba10
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6150c4
call fcn.004796ae
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x45b183
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004796ae
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x45b17c
push 0
mov ecx, eax
call fcn.00452260
mov dword [esi + 0xc], eax
jmp 0x45b185
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x45b185
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x47bd14
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47bd4c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00479dc8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00479da0
jmp 0x47bd58
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47d407
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47d449
call fcn.00482ec0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47d449
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47d440
xor eax, eax
jmp 0x47d451
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047d457
pop edi
pop esi
pop ebx
ret 4
Function at 0x4833f0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48341e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48343c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483356
jmp 0x48343c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48343c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483356
test edi, edi
mov eax, edi
jne 0x483426
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403fd0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4130fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x600
mov eax, dword [0x4ea33c]
push ebx
push esi
push edi
mov dword [esp + 0x604], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x2d0]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x2d4]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x2d0]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.00403f20
lea ecx, [esp + 0xc]
mov dword [esp + 0x614], ebx
call fcn.00403df0
mov ecx, eax
call fcn.00403e40
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea edx, [esp + 0x1a8]
xor eax, eax
push edx
mov ecx, 0x4a
lea edi, [esp + 0x1ac]
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x1b0], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov dword [esp + 0x10], ebx
je 0x404138
jmp 0x4040a0
mov eax, dword [esp + 0x1b0]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, eax
xor eax, eax
mov ecx, 0x89
lea edi, [esp + 0x3d8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3d8]
push ecx
push edx
mov dword [esp + 0x3e0], 0x224
call sub.KERNEL32.dll_Module32First
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x4f8]
push edx
push eax
call fcn.0040b411
add esp, 8
test eax, eax
jne 0x404103
mov eax, dword [esp + 0x1b0]
test eax, eax
je 0x404103
mov dword [esp + ebx*4 + 0x18], eax
inc ebx
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x1a8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1a8]
push ecx
push esi
mov dword [esp + 0x1b0], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4040a0
mov dword [esp + 0x10], ebx
xor edi, edi
test ebx, ebx
jle 0x40417d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + edi*4 + 0x18]
push edx
push 1
push 0x1f0fff
call ebx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, dword [esp + 0x14]
je 0x404174
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x404174
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x404144
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x614], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x60c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x604]
call fcn.0040b1f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4ea33c]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0xdc], eax
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [section.Shared], ebx
je 0x404241
mov eax, dword [section.Shared]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x40421d
mov ecx, dword [section.Shared]
push 9
push ecx
call esi
mov edx, dword [section.Shared]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [section.Shared]
push 5
push eax
call esi
cmp eax, ebx
jne 0x4042e0
call fcn.00403fd0
mov ecx, dword [ebp + 8]
mov dword [0x4eace8], ecx
xor eax, eax
lea edx, [esp + 0x40]
mov ecx, 0x25
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x50], 1
jne 0x404286
cmp dword [esp + 0x44], 5
jae 0x404286
cmp dword [esp + 0x48], 0x5a
ja 0x404286
mov byte [0x4eacec], 1
lea ecx, [esp + 0x10]
call fcn.004024b0
push ebx
push 0x64
call fcn.00401540
add esp, 8
cmp eax, ebx
je 0x4042aa
push 0x64
push eax
lea ecx, [esp + 0x18]
call fcn.004026f0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20a0000
push ecx
mov ecx, 0x4ead98
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00405010
test eax, eax
lea ecx, [esp + 0x10]
jne 0x4042f7
call fcn.004015d0
xor eax, eax
mov ecx, dword [esp + 0xdc]
call fcn.0040b1f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004015d0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
call esi
test eax, eax
jle 0x40436f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esp, [esp]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov ecx, 0x4ead98
call fcn.004044a0
test eax, eax
jne 0x40435e
lea eax, [esp + 0x24]
push eax
mov ecx, 0x4ead98
call fcn.004038b0
test eax, eax
jne 0x40435e
lea ecx, [esp + 0x24]
push ecx
call edi
lea edx, [esp + 0x24]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
jg 0x404320
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xdc]
mov eax, 1
call fcn.0040b1f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4051d0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esi]
mov dword [esp + 0x18], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x10], edi
mov edx, 0xc6ef3720
mov dword [esp + 0x24], esi
mov edi, 0x20
lea esp, [esp]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
sub ecx, esi
add edx, 0x61c88647
dec edi
jne 0x405210
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret

Function at 0x405f60
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x28
mov eax, dword [0x4ea33c]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x48]
cmp edi, ebx
mov dword [esp + 0x34], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
jle 0x405fb4
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
push ebp
push ebx
push esi
mov ecx, esi
call fcn.00405e00
dec edi
jne 0x405fa5
xor ebx, ebx
mov ebp, dword [esp + 0x44]
push esi
push ebp
mov ecx, esi
call fcn.00405ed0
xor eax, eax
mov word [esp + 0x49], ax
mov byte [esp + 0x48], 0
mov byte [esp + 0x4b], al
lea edi, [esp + 0x10]
mov dword [esp + 0x10], ebx
xor esi, esi
jmp 0x405fe0
movzx ecx, byte [esi + ebp]
push ecx
push str._02x
lea edx, [esp + 0x50]
push 4
push edx
call fcn.0040bf35
push 2
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.0040be00
add esp, 0x1c
add edi, 2
inc esi
cmp esi, 0x10
jl 0x405fe0
mov byte [edi - 1], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
pop esi
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
call fcn.0040b1f3
add esp, 0x28
ret 0x10
Function at 0x4070e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0xc], edi
call fcn.00403f20
mov ecx, dword [esp + 0x20]
mov dword [edi + 4], ecx
push 0x40100000
push 0x3e800000
push 0x3f400000
push 1
lea esi, [edi + 0xc]
push 0x11
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.00403c50
mov ecx, dword [esp + 0xc]
mov eax, edi
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], 0x4c
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x407170
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4ea33c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x13c]
test edi, edi
mov dword [esp + 0x134], eax
mov ebp, ecx
jne 0x407194
mov edi, ebp
mov esi, dword [esp + 0x140]
test esi, esi
je 0x40730e
push ebx
mov ebx, dword [esp + 0x148]
jmp 0x4071b0
mov edx, dword [ebp + 0x34]
push 0
lea ecx, [esp + 0x20]
lea eax, [esi + ebx]
push ecx
push eax
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4071db
call fcn.00405b30
mov edx, dword [ebp + 0x34]
push 0
lea eax, [esp + 0x14]
push eax
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407204
call fcn.00405b30
mov eax, dword [esp + 0x24]
sub eax, esi
cmp eax, 0x103
jbe 0x407216
mov eax, 0x103
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0x34]
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40723e
call fcn.00405b30
movsx edx, byte [esp + 0x34]
mov ecx, dword [esp + 0x14c]
cmp edx, ecx
lea eax, [esp + 0x34]
je 0x40725d
sub byte [eax], cl
movsx edx, byte [eax + 1]
inc eax
cmp edx, ecx
jne 0x407252
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.00406540
test eax, eax
jne 0x4072d1
lea ecx, [edi + 0x24]
call fcn.00405d00
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004070e0
mov eax, dword [edi]
cmp eax, dword [edi + 0x18]
jbe 0x4072b3
mov ecx, dword [edi + 0x20]
test ecx, ecx
jne 0x4072b3
push eax
mov ecx, edi
call fcn.00405cb0
push eax
mov ecx, edi
call fcn.00407a00
mov eax, dword [esi + 4]
xor edx, edx
div dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [eax + edx*4]
mov dword [esi + 8], ecx
mov eax, dword [edi + 4]
mov dword [eax + edx*4], esi
inc dword [edi]
add esi, 0xc
jmp 0x4072d4
lea esi, [eax + 0xc]
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00406c60
test byte [esi + 0x34], 1
je 0x407301
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407301
mov edx, dword [esp + 0x14c]
push edx
push ebx
push eax
push esi
mov ecx, ebp
call fcn.00407170
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4071b0
pop ebx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
call fcn.0040b1f3
add esp, 0x12c
ret 0x10
Function at 0x40b7fd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4eaf28], esi
push edi
jne 0x40b81d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4eaf24], esi
mov byte [0x4eaf20], al
jne 0x40b883
mov ecx, dword [0x4ec4f0]
test ecx, ecx
je 0x40b864
mov eax, dword [0x4ec4ec]
sub eax, 4
cmp eax, ecx
jmp 0x40b85d
mov eax, dword [eax]
test eax, eax
je 0x40b84f
call eax
mov eax, dword [0x4ec4ec]
sub eax, 4
cmp eax, dword [0x4ec4f0]
mov dword [0x4ec4ec], eax
jae 0x40b847
mov eax, 0x4ea03c
mov esi, 0x4ea044
cmp eax, esi
mov edi, eax
jae 0x40b883
mov eax, dword [edi]
test eax, eax
je 0x40b87c
call eax
add edi, 4
cmp edi, esi
jb 0x40b874
mov eax, 0x4ea048
mov esi, 0x4ea050
cmp eax, esi
mov edi, eax
jae 0x40b8a2
mov eax, dword [edi]
test eax, eax
je 0x40b89b
call eax
add edi, 4
cmp edi, esi
jb 0x40b893
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40b8bc
push dword [ebp + 8]
mov dword [0x4eaf28], 1
call fcn.0040b763
pop ebp
ret

Function at 0x40ba2e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040bb20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bac9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4eaee8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40bac9
cmp eax, 1
je 0x40baea
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bac9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40ba96
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40bac5
xor eax, eax
inc eax
jmp 0x40bb09
cmp edi, eax
jae 0x40bacd
xor eax, eax
jmp 0x40bb09
cmp eax, esi
jae 0x40bad4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4eaee8]
jmp 0x40baed
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret