joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476ad0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4bae96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x504868]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004a9eae
mov edx, dword [0x504868]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x476b2a
mov dword [esp + 0x1c], ebx
jmp 0x476b31
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004abff7
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004a7b8e
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x476b82
mov dword [esp + 0x14], ebx
jmp 0x476b89
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x476ba4
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x476b9e
cmp eax, 2
jne 0x476ba4
mov dword [esp + 0x18], edi
jmp 0x476ba8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x476bb6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004a94e4
mov edi, eax
cmp edi, ebx
jne 0x476bc6
xor eax, eax
jmp 0x476bc9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x476bf1
mov ecx, esi
call fcn.004abff7
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x476c0d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x476c2c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x476c2c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004a7aa1
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004a7aa1
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4788f0
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 0x478956
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 0x478956
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x478937
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x478ce0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x478d18
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x479940
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 0x479989
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 0x479e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bb360
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.004799b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00479a30
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00479a30
lea ecx, [esi + 0xc]
call fcn.004a7a2c
lea ecx, [esi + 0x10]
call fcn.004a7a2c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047afc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047afc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047afc0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a7aa1
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a7aa1
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47e770
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bb6f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0047eb70
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x53a854
call fcn.00486af9
mov ecx, dword [0x4e6b7c]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0047bec0
mov esi, 0x4e6bd4
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x47e817
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47e80e
cmp al, 0xff
je 0x47e80e
dec al
mov byte [ecx], al
jmp 0x47e817
push ecx
call fcn.004a780b
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004a3620
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x47e85d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47e854
cmp al, 0xff
je 0x47e854
dec al
mov byte [ecx], al
jmp 0x47e85d
push ecx
call fcn.004a780b
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00486b80
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x49dcb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bcaa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00492d5a
mov eax, dword [0x4e9fe0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00492c8c
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0049e750
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x49dd57
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49dd4e
cmp al, 0xff
je 0x49dd4e
dec al
mov byte [ecx], al
jmp 0x49dd57
push ecx
call fcn.004a780b
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x49dd88
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49dd7f
cmp al, 0xff
je 0x49dd7f
dec al
mov byte [ecx], al
jmp 0x49dd88
push ecx
call fcn.004a780b
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4a9eae
Capabilities:
Get graphical window text

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

Function at 0x4ab726
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 0x4ab768
call fcn.004b1efa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ab768
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ab75f
xor eax, eax
jmp 0x4ab770
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ab776
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b242a
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 0x4b2458
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2476
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b2390
jmp 0x4b2476
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b2476
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b2390
test edi, edi
mov eax, edi
jne 0x4b2460
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b4d18
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4b4d40
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4b4d51
push 2
call edi
test ax, ax
jge 0x4b4d51
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004a94e4
cmp dword [esi + 0x30], ebx
jne 0x4b4e2b
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004a94e4
cmp eax, dword [esp + 0x34]
jne 0x4b4e2b
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4b4dc7
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4b4e0c
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4b4e2b
cmp eax, 0x205
je 0x4b4e2b
cmp eax, 0x201
je 0x4b4e2b
cmp eax, 0x204
je 0x4b4e2b
cmp eax, ebx
jne 0x4b4df2
cmp dword [esp + 0x1c], 0x1b
je 0x4b4e2b
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x54bae4]
jbe 0x4b4e21
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4b4d84
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4188a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418720

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x35313e2
Capabilities:
Create thread

Disassembly:
push ebp
mov eax, dword [0x353b43c]
mov ebp, esp
sub esp, 0x1c
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x353a030], 0
je 0x353140b
mov eax, dword [0x353b434]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x3531428
push 0x353b1c4
xor eax, eax
push eax
push dword [ebp + 8]
push 0x3531a51
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x353a030], eax
push 0x353a020
mov eax, dword [0x353b3ac]
push eax
push 0x353b450
push dword [0x353a028]
call fcn.03532fdc
push dword [0x353b4a4]
push eax
mov dword [0x353b3ac], eax
call fcn.03532697
push dword [0x353b3c0]
push dword [0x353b3ac]
mov dword [0x353b3a8], eax
call fcn.03532697
push dword [ebp + 8]
mov dword [0x353b4dc], eax
call fcn.03531537
push dword [ebp + 8]
call fcn.035315d8
push 1
lea ecx, [ebp - 0x1c]
push 0x20a
push 0x200
push dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x353147f
push 1
lea ecx, [ebp - 0x1c]
push 0x108
push 0x100
push dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x353149c
mov eax, dword [0x353b438]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esp, ebp
pop ebp
ret 4

Function at 0x353185b
Capabilities:
Terminate process

Disassembly:
sub esp, 0x64
push ebx
push esi
mov esi, dword [esp + 0x70]
push edi
push 0x6b
push esi
call fcn.03531c7d
push eax
push dword [0x353b3a8]
call fcn.035335cf
push dword [0x353b4a0]
mov edi, eax
mov eax, dword [0x353b3a8]
push eax
call fcn.0353366c
test eax, eax
je 0x3531929
push eax
push edi
call fcn.035336a1
mov ebx, dword [eax]
push ebx
push edi
call fcn.0353362e
lea ecx, [esp + 0x10]
push eax
push str.Terminate_process__s__ID__x__
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x1c]
add esp, 0x10
push 0x11
push str.Terminate_Process
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x353193c
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x35318f2
push 0x30
push str.Terminate_Process
push str.Unable_to_open_the_process__Process_not_terminated
jmp 0x3531935
push 0x63
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x353191b
push 0x30
push str.Terminate_Process
push str.Unable_to_terminate_the_process.
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x353193c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x353193e
push 0x30
push str.Terminate_Process
push str.Cannot_find_ID_for_this_process
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x64
ret 4
Function at 0x35323a2
Capabilities:
Get hostname

Disassembly:
push ebp
mov eax, dword [0x353a028]
mov ebp, esp
sub esp, 0x28
cmp eax, 0x80000004
push esi
mov dword [ebp - 4], 0x12
je 0x35323c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x353a02c]
cmp eax, 0x80000002
je 0x35323d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x28]
mov dword [0x353a028], 0x80000004
mov dword [0x353a02c], 0x80000002
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp word [ebp - 0x28], 0x5c
jne 0x3532418
cmp word [ebp - 0x26], 0x5c
jne 0x3532418
lea eax, [ebp - 0x28]
mov esi, 0x353b310
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x3532430
lea eax, [ebp - 0x28]
mov esi, 0x353b310
push eax
push str._s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
push 0x353b4b0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x35336bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp dword [esi], 0
jne 0x35336df
push dword [edi]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
mov eax, dword [edi]
lea edx, [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [esi]
push edx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
mov ebx, eax
jne 0x3533721
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
add eax, 0x400
push eax
mov dword [edi], eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
cmp dword [esi], 0
je 0x3533739
cmp ebx, 0xea
je 0x35336df
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 8
jmp 0x3533730
Function at 0x3533960
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3539218
push 0x3534a64
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x353a070], eax
xor eax, eax
mov al, byte [0x353a071]
mov dword [0x353a07c], eax
mov eax, dword [0x353a070]
shr dword [0x353a070], 0x10
and eax, 0xff
mov dword [0x353a078], eax
shl eax, 8
add eax, dword [0x353a07c]
mov dword [0x353a074], eax
call fcn.03534a20
test eax, eax
jne 0x35339d4
push 0x1c
call fcn.03533b00
add esp, 4
mov dword [ebp - 4], 0
call fcn.03534840
call fcn.03534830
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x353b5fc], eax
call fcn.035343e0
mov dword [0x353a034], eax
test eax, eax
je 0x3533a07
cmp dword [0x353b5fc], 0
jne 0x3533a11
push 0xffffffffffffffff
call fcn.03533c80
add esp, 4
call fcn.03534160
call fcn.03534070
call fcn.03533c50
mov esi, dword [0x353b5fc]
mov al, byte [esi]
cmp al, 0x22
je 0x3533a38
cmp al, 0x20
jbe 0x3533a65
inc esi
cmp byte [esi], 0x20
ja 0x3533a30
jmp 0x3533a65
inc esi
cmp byte [esi], 0x22
je 0x3533a64
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x3533a5f
xor eax, eax
mov al, bl
push eax
call fcn.03534010
add esp, 4
test eax, eax
je 0x3533a59
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x3533a41
cmp byte [esi], 0x22
jne 0x3533a65
inc esi
cmp byte [esi], 0
je 0x3533a75
cmp byte [esi], 0x20
ja 0x3533a75
inc esi
cmp byte [esi], 0
jne 0x3533a6a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x3533a99
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.03533c80
jmp 0x3533ada
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x3533cc0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x353a0ac], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x3533cde
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x353a0a8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x353a0a4], bl
jne 0x3533d38
cmp dword [0x353b5f8], 0
je 0x3533d26
mov edi, dword [0x353b5f4]
sub edi, 4
cmp edi, dword [0x353b5f8]
jb 0x3533d26
mov eax, dword [edi]
test eax, eax
je 0x3533d1b
call eax
sub edi, 4
cmp edi, dword [0x353b5f8]
jae 0x3533d13
push 0x353a014
push 0x353a010
call fcn.03533d70
add esp, 8
push 0x353a01c
push 0x353a018
call fcn.03533d70
add esp, 8
test ebx, ebx
jne 0x3533d5f
mov dword [0x353a0ac], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x35343e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x353a150], ebx
jne 0x353442f
call esi
cmp eax, ebx
mov edi, eax
je 0x353440d
mov dword [0x353a150], 1
jmp 0x353442f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x3534425
mov dword [0x353a150], 2
jmp 0x353442f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x353a150], 1
jne 0x35344de
test edi, edi
jne 0x3534452
call esi
mov edi, eax
test edi, edi
jne 0x3534452
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x353446c
add esi, 2
cmp word [esi], 0
jne 0x353445a
add esi, 2
cmp word [esi], 0
jne 0x353445a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x35344cd
push ebp
call fcn.03535690
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x35344cd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x35344bc
push ebx
call fcn.03535640
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x353a150], 2
jne 0x3534562
test ebx, ebx
jne 0x3534501
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x3534501
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x3534516
inc ebp
cmp byte [ebp], 0
jne 0x3534508
inc ebp
cmp byte [ebp], 0
jne 0x3534508
sub ebp, ebx
inc ebp
push ebp
call fcn.03535690
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x353453b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret