joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449090
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48d488
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 [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00485cf4
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004489e0
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.00485c22
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.004824dd
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.004824dd
push 1
push 0
push 0
mov ecx, esi
call fcn.00482485
push 1
push 0
push 1
mov ecx, esi
call fcn.00482485
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00485d66
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x449210
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48d4a8
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.00485cf4
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004489e0
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.00485c22
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
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 0x4492d4
cmp dword [esp + 0x40], 1
jne 0x4492d2
cmp ecx, eax
jge 0x4492d4
mov eax, ecx
cmp eax, 0xc8
jge 0x4492e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00449090
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00485d66
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x449af0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48d553
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.004808fd
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
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], method.CEdit.virtual_0
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 [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00485f9c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004874b8
test eax, eax
je 0x449c0c
mov ecx, dword [esp + 0x3c]
call fcn.00485fc9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x449bd0
push edi
mov ecx, esi
call fcn.00483629
mov ecx, esi
call fcn.00449db0
cmp dword [esp + 0x38], 1
jne 0x449c05
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.00483764
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 0x44bdf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44be23
push esi
call fcn.0045a080
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44be1c
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 0x44bea9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44be92
mov eax, dword [esi + 8]
test eax, eax
je 0x44be47
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 0x44be8e
cmp eax, 2
je 0x44be92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44be3a
cmp eax, 3
je 0x44be6d
cmp eax, 1
jne 0x44be3a
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 0x44be3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44be3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044bed0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44beb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044bed0
add esp, 4
pop esi
ret

Function at 0x44c750
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44c771
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44c771
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44c771
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x466970
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 0x466a13
test eax, eax
jbe 0x466a13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x466a13
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 0x4669be
xor esi, esi
jmp 0x4669c4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4669ef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004689c0
add esi, eax
push esi
mov ebx, esi
call fcn.004689c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4669d0
pop ebp
test edi, edi
pop edi
jne 0x466a13
test ebx, ebx
je 0x466a13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046f9c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x466b35
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 0x466c4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466c4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00480d4f
mov esi, eax
test esi, esi
je 0x466c4d
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 0x466c4d
mov ecx, esi
call fcn.00466ac0
cmp edi, eax
jge 0x466c4d
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 0x466bd3
mov dword [esp + 0x34], 1
jmp 0x466c2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x466c4d
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.004660b0
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 0x469800
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x469849
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x469cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48dc70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00469870
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004698f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004698f0
lea ecx, [esi + 0xc]
call fcn.0047f2da
lea ecx, [esi + 0x10]
call fcn.0047f2da
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046ae80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046ae80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046ae80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047f34f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047f34f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46b070
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46b0d6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46b0d6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46b0b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4816f3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48172b
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.0047f7aa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047f782
jmp 0x481737
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x482de1
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 0x482e23
call fcn.0048895d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x482e23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482e1a
xor eax, eax
jmp 0x482e2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482e31
pop edi
pop esi
pop ebx
ret 4

Function at 0x488e8d
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 0x488ebb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x488ed9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00488df3
jmp 0x488ed9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488ed9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00488df3
test edi, edi
mov eax, edi
jne 0x488ec3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407f31
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x472410
call fcn.0045357c
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
call fcn.00403ce8
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0x10], esi
je 0x408081
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov al, byte [edi]
dec dword [ebp + 0x10]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc edi
cmp esi, 3
jne 0x407fdb
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
mov ecx, 0x49f8d4
call fcn.004036e2
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.00403de1
inc esi
cmp esi, 4
jl 0x407fb1
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x407f67
xor edi, edi
cmp esi, edi
je 0x40807f
cmp esi, 3
jge 0x408007
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push edi
push eax
call fcn.00454e40
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x408067
movzx eax, byte [ebp + edi - 0x14]
push eax
mov ecx, 0x49f8d4
call fcn.004036e2
mov al, byte [eax]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 1
call fcn.00403de1
inc edi
cmp edi, ebx
jl 0x408040
push 3
pop edi
cmp esi, edi
jge 0x40807f
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.00403de1
dec edi
jne 0x408070
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40bcb4
Capabilities:
Create directory

Disassembly:
mov eax, 0x472afe
call fcn.0045357c
sub esp, 0x14
push ebx
push esi
push edi
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401407
lea eax, [ebp - 0x20]
mov esi, 0x49faac
push eax
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.0041c79a
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0041c5c6
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004146be
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00401436
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.00401436
push 0x47ad14
push 0x47badc
lea ecx, [ebp - 0x10]
call fcn.0041435a
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040b95f
push 0x47bad8
mov ecx, edi
call fcn.004147dd
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bd97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bd97
push ebx
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0041c5c6
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0040ba11
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.00401436
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00401436
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ccf0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x472de4
call fcn.0045357c
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push str.openUrlOnDefaultBrowser
mov ecx, 0x49fb88
call fcn.004019b3
mov byte [ebp - 4], 1
push 1
push esi
push esi
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41a960
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
push ebx
movzx ebx, word [eax + 6]
lea edx, [ecx + eax + 0x18]
push esi
xor ecx, ecx
push edi
test ebx, ebx
jle 0x41a9a3
lea eax, [edx + 8]
mov edi, dword [eax]
test edi, edi
jne 0x41a98c
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
cmp dword [ebp + 0xc], esi
jb 0x41a99b
add esi, edi
cmp dword [ebp + 0xc], esi
jb 0x41a9aa
inc ecx
add eax, 0x28
cmp ecx, ebx
jl 0x41a983
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
imul ecx, ecx, 0x28
add ecx, edx
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
jmp 0x41a9a5

Function at 0x41a9bd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, 0x5a4d
add eax, ecx
cmp word [ecx], dx
je 0x41a9d6
xor eax, eax
pop ebp
ret
cmp dword [eax], 0x4550
jne 0x41a9d2
mov edx, 0xe0
cmp word [eax + 0x14], dx
jb 0x41a9d2
push dword [eax + 0x88]
push ecx
call fcn.0041a960
pop ecx
pop ecx
pop ebp
ret
Function at 0x41ae33
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push esi
mov esi, dword [ebp + 8]
push 0x25
push esi
call fcn.00457175
pop ecx
pop ecx
test eax, eax
jne 0x41ae56
or eax, 0xffffffff
jmp 0x41af33
add eax, 2
push 0x25
push eax
call fcn.00457175
pop ecx
pop ecx
test eax, eax
je 0x41ae4e
xor eax, eax
push ebx
mov word [ebp - 0x210], ax
push edi
lea edi, [ebp - 0x210]
cmp word [esi], ax
je 0x41af09
movzx eax, word [esi]
cmp ax, 0x25
je 0x41ae93
mov word [edi], ax
inc edi
inc edi
inc esi
inc esi
jmp 0x41aeff
lea ebx, [esi + 2]
push 0x25
push ebx
call fcn.00457175
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41af36
sub eax, esi
sar eax, 1
push eax
push ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x41aef9
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
mov esi, dword [ebp - 4]
add esi, 2
cmp word [esi], 0
jne 0x41ae81
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41af2f
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x41af31
Function at 0x41b1b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.0040925a
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov dword [ebp - 4], 0x400
jb 0x41b1e5
mov eax, dword [eax + 4]
jmp 0x41b1e8
add eax, 4
push esi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41b217
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push eax
call fcn.00409407
mov eax, esi
pop esi
leave
ret
Function at 0x41c19a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x475382
call fcn.0045357c
sub esp, 0xe8
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push 0x47ed18
mov ecx, 0x49fb88
call fcn.004019b3
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040181b
mov byte [ebp - 4], 2
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 1
mov ecx, esi
call dword [eax + 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.0040b95f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401436
push dword [ebp + 8]
lea ecx, [ebp - 0xf4]
call fcn.0040b79e
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0x54]
call fcn.00401a8d
mov byte [ebp - 4], 6
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x41c239
push dword [ebp - 0xf4]
call fcn.00455027
pop ecx
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x41c245
lea eax, [ebp - 0x50]
push 0x47ed14
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00459077
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x41c3ac
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x41c2a6
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004014ab
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00401436
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401436
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.004013d5
mov byte [ebp - 4], 7
push 2
push ebx
push dword [ebp - 0x14]
call fcn.00458868
push dword [ebp - 0x14]
call fcn.00458f45
add esp, 0x10
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.0041fc74
push dword [ebp - 0x14]
call fcn.00458ce2
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x24]
push edi
push ebx
call fcn.004036e2
push eax
call fcn.00458cc5
push dword [ebp - 0x14]
call fcn.004589a9
add esp, 0x14
push dword [ebp + 0xc]
lea ecx, [ebp - 0xf4]
call fcn.0040b79e
mov byte [ebp - 4], 8
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.00401a8d
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x41c32f
mov eax, dword [eax + 4]
jmp 0x41c332
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00401a8d
mov byte [ebp - 4], 0xa
sub esp, 0x1c
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00404312
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
mov byte [ebp - 4], 9
mov ecx, esi
call dword [eax + 0x28]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004014ab
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xf4], eax
je 0x41c393
push dword [ebp - 0xf4]
call fcn.00455027
pop ecx
mov byte [ebp - 4], 6
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.004014ab
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
jmp 0x41c26d
mov byte [ebp - 0xd], bl
jmp 0x41c26d