joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e2c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4976
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cmp dword [ebx + 0x50], 0x10
lea eax, [ebx + 0x3c]
jb 0x46e31c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46e3ee
push 0x14
push str.Local_file_not_found
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.0046a890
lea esi, [ebx + 0x6c]
lea eax, [ebp - 0x12c]
cmp esi, eax
je 0x46e3c9
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x46e39e
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0046a990
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x46e3b6
mov eax, dword [esi]
jmp 0x46e3b8
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x12c]
push eax
call fcn.0046a4c0
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x46e3e7
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.0046a990
xor al, al
jmp 0x46e4ea
push 0x10008
mov byte [ebp - 0x15d], 1
call fcn.00471e37
add esp, 4
mov dword [ebp - 0x164], 0
mov esi, eax
lea eax, [ebp - 0x164]
mov dword [ebp - 0x16c], esi
push 0
push eax
push 0x10000
lea ecx, [esi + 8]
mov dword [esi], 0x41544144
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e4a3
nop word [eax + eax]
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x46e4d4
mov dword [esi + 4], eax
mov ecx, ebx
mov eax, dword [ebp - 0x164]
add eax, 8
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0046e860
test al, al
je 0x46e506
mov esi, dword [ebp - 0x16c]
lea eax, [ebp - 0x164]
push 0
push eax
push 0x10000
lea eax, [esi + 8]
mov dword [ebp - 0x164], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46e440
push str.Fail_to_read_local_file
lea ecx, [ebp - 0x15c]
call fcn.00463020
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebx + 0x6c]
call fcn.00463290
lea ecx, [ebp - 0x15c]
call fcn.00463250
mov byte [ebp - 0x15d], 0
push esi
call fcn.00472590
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x15d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
push str.Fail_to_write_file_data
lea ecx, [ebp - 0x144]
call fcn.00463020
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebx + 0x6c]
call fcn.00463290
lea ecx, [ebp - 0x144]
call fcn.00463250
mov esi, dword [ebp - 0x16c]
jmp 0x46e4cd
Function at 0x46e860
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
cmp dword [ebx + 0x90], 0
mov edi, dword [esi]
mov esi, dword [esi + 4]
je 0x46e8d7
test esi, esi
je 0x46e95b
mov ecx, 0x1000
push 0
cmp esi, 0x1000
mov eax, esi
cmovg eax, ecx
push eax
push edi
push dword [ebx + 0x94]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x46e8c2
add edi, eax
mov ecx, 0x1000
sub esi, eax
jne 0x46e893
jmp 0x46e95b
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x1c], 0x45545257
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0xbaabada8
test esi, esi
je 0x46e95b
mov ecx, 0x1000
cmp esi, 0x1000
mov eax, esi
cmovg eax, ecx
push eax
push edi
mov dword [ebp - 0x10], eax
call fcn.0046ece0
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov ecx, ebx
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
call fcn.0046e630
test eax, eax
je 0x46e8c2
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
push dword [ebp - 0x10]
push edi
call fcn.0046e630
test eax, eax
je 0x46e8c2
add edi, dword [ebp - 0x10]
mov ecx, 0x1000
sub esi, dword [ebp - 0x10]
jne 0x46e900
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472286
mov esp, ebp
pop ebp
ret 4
Function at 0x46eda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
call fcn.004768d0
push 0x100
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004768d0
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push 0x20019
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ee4a
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x20c], 0x1000
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.registration_code
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ee53
sub ecx, edx
cmp ecx, 0x23
jne 0x46ee7a
xor ecx, ecx
mov al, byte [ebp + ecx - 0x1e5]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x46ee63
jmp 0x46eee4
lea eax, [ebp - 0x208]
push eax
push 0x20019
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46eee4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x210], 0x1000
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.data6
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46eef0
sub ecx, edx
cmp ecx, 4
jne 0x46ef25
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
push str.shell:am_broadcast__a_com.pdanet.action1__f_32__e_verCode__d__e_pnhash__s
push edi
call fcn.00462bb0
add esp, 0x10
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push str.shell:am_broadcast__a_com.pdanet.action1__f_32__e_verCode__d
push edi
call fcn.00462bb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.00472286
mov esp, ebp
pop ebp
ret
Function at 0x46fec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x46ff29
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46fee0
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x46ff29
add ebx, ebx
mov eax, ebx
call fcn.004722a0
mov edi, esp
test edi, edi
je 0x46ff29
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x46ff2b
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ff78
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46ff90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x100
push 0
push eax
mov dword [ebp - 0x108], ebx
call fcn.004768d0
add esp, 0xc
test esi, esi
je 0x470022
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ffd1
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x47001a
add ebx, ebx
mov eax, ebx
call fcn.004722a0
mov edi, esp
test edi, edi
je 0x47001a
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x47001c
xor esi, esi
mov ebx, dword [ebp - 0x108]
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x470088
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x110], 0x1000
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0046fd00
mov eax, dword [ebp - 0x10c]
push 0
mov dword [ebx], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
lea esp, [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret 0xc
Function at 0x470640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4706a9
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470660
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4706a9
add ebx, ebx
mov eax, ebx
call fcn.004722a0
mov edi, esp
test edi, edi
je 0x4706a9
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x4706ab
xor esi, esi
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4706f5
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret 0xc

Function at 0x470710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x470779
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470730
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x470779
add ebx, ebx
mov eax, ebx
call fcn.004722a0
mov edi, esp
test edi, edi
je 0x470779
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x47077b
xor esi, esi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4707d6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470787
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x4707d6
add eax, eax
call fcn.004722a0
mov ebx, esp
test ebx, ebx
je 0x4707d6
mov ecx, dword [ebp - 8]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x4707d8
xor edi, edi
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwarePdaNetAndroid
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x47081f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b0184
Capabilities:
Read file on windows

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

Function at 0x4b018f
Capabilities:
Read file on windows

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

Function at 0x4b4b44
Capabilities:
Set environment variable

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

Function at 0x4b4b4f
Capabilities:
Set environment variable

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

Function at 0x4b51a1
Capabilities:
Create thread
Print debug messages

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

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002620
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100271e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x534
je 0x100269c
cmp dword [ebp - 0x24], 0x7a
jne 0x100271c
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10026bd
mov dword [ebp - 0x24], 8
jmp 0x1002753
mov eax, dword [ebp - 0x20]
lea ecx, [eax + eax + 2]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10026df
mov dword [ebp - 0x24], 8
jmp 0x1002753
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1002713
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x1002753
mov dword [ebp - 0x24], 0
jmp 0x100271e
jmp 0x1002753
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [0x100406c]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.AUTHZ.dll_AuthzInitializeContextFromSid]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1002753
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x10], 0
je 0x1002763
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
je 0x1002773
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 8
Function at 0x1003573
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001278
call fcn.01003740
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10035ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10035ae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10035c6
cmp eax, 0x20b
je 0x10035b3
mov dword [ebp - 0x1c], edi
jmp 0x10035da
cmp dword [ecx + 0x84], 0xe
jbe 0x10035ae
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10035d4
cmp dword [ecx + 0x74], 0xe
jbe 0x10035ae
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004074], 0xffffffff
or dword [0x1004078], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100402c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100407c], eax
call fcn.01003738
cmp dword [0x100401c], edi
jne 0x1003635
push fcn.01003738
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003721
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004024]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1004020]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001320
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10036ac
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10036e1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100377b
ret
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486360]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040261a
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402edf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069e9
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.0040387f
push eax
call fcn.0040384d
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402edf
jmp 0x401f9b
Function at 0x41833a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407930
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41837c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421750
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485f58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418760
mov ecx, dword [esi*4 + 0x485f58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4184d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184d1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4184d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418760
add esp, 0x14
test edx, edx
jl 0x4184d1
jg 0x418447
test eax, eax
jb 0x4184d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184d1
jl 0x418461
cmp dword [ebp - 0x1008], eax
ja 0x4184d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41847f
test ebx, ebx
je 0x4184b8
cmp ecx, edi
jae 0x4184b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x418499
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184a5
cmp byte [ecx + 1], 0xa
jne 0x4184a5
inc ecx
jmp 0x4184a5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41847f
cmp edx, ebx
jne 0x41847f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069e9
leave
ret