joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403c03
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x40e960], ebx
jne 0x405f6e
push ebx
push ebx
push 0x4019f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x405ed9
xor eax, eax
jmp 0x406032
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019e8
push edi
call esi
cmp eax, ebx
je 0x405ed2
push eax
call fcn.00403b8b
mov dword [esp], 0x4019d8
push edi
mov dword [0x40e960], eax
call esi
push eax
call fcn.00403b8b
mov dword [esp], 0x4019c4
push edi
mov dword [0x40e964], eax
call esi
push eax
call fcn.00403b8b
mov dword [0x40e968], eax
lea eax, [ebp - 8]
push eax
call fcn.00402e0f
pop ecx
pop ecx
test eax, eax
je 0x405f3c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405354
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x405f6e
push 0x4019a8
push edi
call esi
push eax
call fcn.00403b8b
pop ecx
mov dword [0x40e970], eax
cmp eax, ebx
je 0x405f6e
push 0x401990
push edi
call esi
push eax
call fcn.00403b8b
pop ecx
mov dword [0x40e96c], eax
mov eax, dword [0x40e96c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x405fe7
cmp dword [0x40e970], esi
je 0x405fe7
push eax
call fcn.00403c11
pop ecx
call eax
cmp eax, ebx
je 0x405fb4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e970]
call fcn.00403c11
pop ecx
call eax
test eax, eax
je 0x405fb4
test byte [ebp - 0x18], 1
jne 0x405fe7
lea eax, [ebp - 0xc]
push eax
call fcn.00402e50
pop ecx
test eax, eax
je 0x405fcf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405354
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x405fde
or dword [ebp + 0x10], 0x200000
jmp 0x406018
or dword [ebp + 0x10], 0x40000
jmp 0x406018
mov eax, dword [0x40e964]
cmp eax, esi
je 0x406018
push eax
call fcn.00403c11
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x406018
mov eax, dword [0x40e968]
cmp eax, esi
je 0x406018
push dword [ebp - 4]
push eax
call fcn.00403c11
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e960]
call fcn.00403c11
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ab43
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.00402e0f
pop ecx
test eax, eax
je 0x40ab78
push esi
push esi
push esi
push esi
push esi
call fcn.00405354
add esp, 0x14
push 4
pop eax
call fcn.0040afb0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ac94
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x40ac0d
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x401970
call esi
test eax, eax
jne 0x40abe4
push 0x401954
call esi
test eax, eax
je 0x40ac0d
push 0x402638
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac0d
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x40ac0d
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x40ac0d
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.00403509
add esp, 0xc
test eax, eax
jl 0x40ac94
not esi
and dword [ebp - 8], esi
je 0x40ac3f
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.00403509
add esp, 0xc
test eax, eax
jl 0x40ac94
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x40ac4a
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x40ac5e
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x40ac94
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40ac94
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40ac94
xor eax, eax
inc eax
jmp 0x40ac96
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c4f
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x70a36676
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x432853f4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40aaa0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a918
mov eax, dword [0x416c10]
cmp byte [eax], 0
je 0x40ab1c
mov eax, dword [0x416b20]
call fcn.00403128
call fcn.00402eec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407c9c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ab64
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ab52
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416afc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4197f0]
call fcn.00405348
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c9b4
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
lea edx, [esp + 0xc]
mov eax, dword [0x41b9bc]
mov ecx, 0x40
call fcn.00402f80
mov dword [0x41b908], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x41b908
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x40c9e2
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x41b908]
add eax, esi
add eax, edi
mov dword [esp + 4], 3
mov ecx, dword [esp + 4]
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 4]
neg ecx
shr eax, cl
or edx, eax
mov eax, edx
mov esi, eax
mov dword [ebx*4 + 0x41b908], esi
lea eax, [edi + esi]
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + ebp*4 + 0xc]
add eax, esi
add eax, edi
shl eax, cl
mov ecx, dword [esp + 8]
neg ecx
mov edx, dword [esp + ebp*4 + 0xc]
add edx, esi
add edi, edx
shr edi, cl
or eax, edi
mov edi, eax
mov dword [esp + ebp*4 + 0xc], edi
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc ebp
and ebp, 0x8000000f
jns 0x40ca7a
dec ebp
or ebp, 0xfffffff0
inc ebp
dec dword [esp]
jne 0x40ca02
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1005302
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1009f30
call fcn.010054f4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100b4ac
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005117
cmp eax, esi
jne 0x100510a
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100511a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10050f1
xor esi, esi
inc esi
mov eax, dword [0x100b4a8]
cmp eax, esi
jne 0x100512d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005168
mov eax, dword [0x100b4a8]
test eax, eax
jne 0x1005162
mov dword [0x100b4a8], esi
push 0x1001210
push 0x1001204
call fcn.0100506e
pop ecx
pop ecx
test eax, eax
je 0x1005168
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1005232
mov dword [0x100b050], esi
mov eax, dword [0x100b4a8]
cmp eax, esi
jne 0x100518c
push 0x1001200
push 0x10011f8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100b4a8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1005199
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100b4b0], ebx
je 0x10051ba
push 0x100b4b0
call fcn.01005469
pop ecx
test eax, eax
je 0x10051ba
push ebx
push 2
push ebx
call dword [0x100b4b0]
push dword [0x100b038]
push dword [0x100b03c]
push dword [0x100b034]
call fcn.01003f6a
add esp, 0xc
mov dword [0x100b04c], eax
cmp dword [0x100b040], ebx
jne 0x1005218
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100b050], ebx
jne 0x1005226
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100b04c]
call fcn.01005539
ret
call fcn.01005641
jmp 0x10050cf
Function at 0x10094f2
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa08
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x9e4], eax
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0xa04]
mov dword [ebp - 0xa08], esi
mov dword [ebp - 0x9e8], edx
mov dword [ebp - 0x9e0], esi
mov dword [ebp - 0x9dc], esi
rep stosd dword es:[edi], eax
mov word [ebp - 0x46], ax
cmp dword [ebp - 0x9e4], esi
je 0x1009676
cmp ebx, esi
je 0x1009676
mov eax, dword [ebx]
cmp eax, esi
je 0x100956f
cmp eax, 2
jb 0x1009676
cmp edx, esi
je 0x1009676
cmp dword [0x100b38c], esi
jne 0x10095a3
lea eax, [ebp - 0x9d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1009599
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x1009682
mov dword [0x100b38c], 1
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0xa08]
push eax
push esi
push dword [ebp - 0x9e4]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x1009688
mov esi, dword [ebp - 0x9dc]
xor edi, edi
jmp 0x1009610
push 4
xor eax, eax
mov word [ebp - 0x848], ax
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x401
lea eax, [ebp - 0x848]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, edi
je 0x1009616
cmp eax, 0x2afc
jne 0x100960d
cmp word [ebp - 0x848], di
jne 0x1009616
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x10095d0
jmp 0x1009662
lea esi, [ebp - 0x848]
cmp dword [ebp + 0x14], edi
jne 0x1009633
mov eax, esi
push 0x10014e8
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
mov esi, eax
push edi
push esi
call fcn.01005bd2
mov ecx, dword [ebx]
inc eax
cmp ecx, eax
jae 0x100964f
mov dword [ebx], eax
mov dword [ebp - 0x9e0], 1
jmp 0x1009662
push ecx
push esi
push dword [ebp - 0x9e8]
call fcn.01006510
mov dword [ebp - 0x9e0], eax
push dword [ebp - 0x9dc]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [ebp - 0x9e0]
jmp 0x100968a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009688
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005311
leave
ret 0x10
Function at 0x1009aa4
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1009bff
push esi
call fcn.0100986b
cmp eax, 1
je 0x1009bff
push esi
mov dword [ebp + 8], esi
call fcn.010093f9
cmp eax, 1
jne 0x1009ade
add esi, 4
mov dword [ebp + 8], esi
push dword [ebp + 8]
call fcn.010099d2
test eax, eax
jne 0x1009afa
call fcn.010059a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009c33
cmp dword [ebp + 0x14], ebx
je 0x1009b23
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009b23
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x1001508
push 2
call fcn.01006cf7
add esp, 0x10
jmp 0x1009b35
push dword [ebp + 8]
push 0x10014ec
push 1
call fcn.01006cf7
add esp, 0xc
test eax, eax
jne 0x1009b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009b4b
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010059a3
push 8
pop eax
jmp 0x1009c33
call fcn.01005910
cmp eax, ebx
jne 0x1009b6a
push 0x12
call fcn.0100589f
jmp 0x1009b74
push ebx
push ebx
push eax
push 0x12
call fcn.01006a6a
mov edx, eax
cmp edx, ebx
je 0x1009b39
push edi
push 8
pop ecx
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
pop edi
cmp esi, ebx
je 0x1009bc5
cmp esi, 0x4b8
je 0x1009bbe
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010059a3
jmp 0x1009c2d
call fcn.01006d89
jmp 0x1009c2d
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call fcn.010096a0
push eax
call fcn.01005aeb
test eax, eax
jne 0x1009c2d
push dword [ebp + 8]
call fcn.01009a87
push 0x1580
call fcn.01007722
push eax
call fcn.0100593c
mov esi, 0x4b8
jmp 0x1009c2d
cmp dword [ebp + 0xc], ebx
je 0x1009c31
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009c31
push 0x157e
call fcn.01007722
push eax
call fcn.0100593c
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x1009c33
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x1009c5f
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
call ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1009de9
push 0
push edi
call fcn.01005bd2
test eax, eax
je 0x1009de9
xor esi, esi
inc esi
cmp dword [ebp + 0x1c], esi
jne 0x1009cc8
cmp dword [ebp + 0xc], 0
je 0x1009cae
cmp dword [ebp + 0x10], 2
jb 0x1009cae
cmp dword [ebp + 0x14], 0
je 0x1009cae
cmp dword [ebp + 0x18], 2
jae 0x1009cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009cbc
push 0x57
call ebx
call fcn.010059a3
xor eax, eax
jmp 0x1009dec
push edi
mov dword [ebp - 4], edi
call fcn.010093f9
cmp eax, esi
jne 0x1009cdb
lea eax, [edi + 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], esi
jne 0x1009d0c
cmp dword [ebp + 0x14], 0
je 0x1009d0c
push 0
push esi
push 0x1001244
push dword [ebp + 0x14]
call fcn.01005bf3
test eax, eax
jne 0x1009d0c
push dword [ebp - 4]
call fcn.010099d2
test eax, eax
jne 0x1009e00
jmp 0x1009cbc
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.010099d2
test eax, eax
je 0x1009cbc
cmp dword [ebp + 0xc], 0
je 0x1009d51
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009d51
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.01009c3e
mov edi, eax
cmp dword [ebp + 0x1c], esi
jne 0x1009d60
mov dword [ebp - 8], esi
jmp 0x1009d60
push 0
push 0
push edi
mov dword [ebp - 8], esi
call fcn.01009c3e
mov edi, eax
cmp edi, 0x55
jne 0x1009d70
push 0x50010001
call ebx
mov eax, esi
jmp 0x1009dec
test edi, edi
jne 0x1009d7c
cmp dword [ebp - 8], esi
je 0x1009d65
push edi
jmp 0x1009d6a
mov eax, 0x4c3
cmp edi, eax
ja 0x1009da9
je 0x1009da6
cmp edi, 0x34
je 0x1009e98
cmp edi, 0x56
je 0x1009df3
cmp edi, 0x4be
je 0x1009e98
jmp 0x1009cbc
push eax
jmp 0x1009d6a
cmp edi, 0x4cf
jb 0x1009cbc
cmp edi, 0x4d1
jbe 0x1009e98
cmp edi, 0x52e
je 0x1009df3
mov esi, 0xa0010001
cmp edi, esi
jne 0x1009cbc
push 0x157e
call fcn.01007722
push eax
call fcn.0100593c
push esi
call ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x18
cmp dword [ebp + 0x1c], 0
je 0x1009cc1
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1009e23
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x1009cbc
push dword [ebp + 0xc]
push 0x157d
call fcn.01007722
push eax
push esi
push esi
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.010075cf
add esp, 0x14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.010067fb
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.01009c3e
mov edi, eax
test edi, edi
je 0x1009d6c
cmp edi, 0x34
je 0x1009e98
cmp edi, 0x4be
je 0x1009e98
mov eax, 0x4c3
cmp edi, eax
je 0x1009da6
cmp edi, 0x4ce
jbe 0x1009cbc
cmp edi, 0x4d1
ja 0x1009dc9
push 0x4c6
call ebx
call fcn.010059a3
push edi
call ebx
jmp 0x1009cc1
Function at 0x401f49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x487330]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004028d3
lea ecx, [esp + 0x1c]
call fcn.00401d79
cmp eax, dword [esp + 0x10]
je 0x401fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403198
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x401f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ca2
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403b38
push eax
call fcn.00403b06
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403198
jmp 0x401fbb

Function at 0x402003
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x487330], eax
pop edi
pop esi
ret

Function at 0x407a6d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407aac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407aac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407aac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407aac
cmp dword [ecx + 0x74], 0xe
jbe 0x407aac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41612c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427050
push 0x427048
push str.FlsAlloc
push 0x1e
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416160
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
jmp 0x416166
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427060
push 0x427058
push str.FlsGetValue
push 0x20
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4161e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416f76
Capabilities:
Read file on windows

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

Function at 0x416f81
Capabilities:
Read file on windows

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