joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x308
cmp byte [0x406460], 0
push esi
mov esi, dword [esp + 0x310]
jne 0x401400
push esi
call fcn.00401180
add esp, 4
push 0x4050fc
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401455
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x40510c
call fcn.00401d60
add esp, 8
test eax, eax
jne 0x401500
push str.Could_not_load_python_dll
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
xor eax, eax
pop esi
add esp, 0x308
ret
lea eax, [esp + 4]
push eax
mov eax, 0x405e20
call fcn.00401350
mov esi, eax
add esp, 4
test esi, esi
je 0x4014a4
push edi
push 0xb
push 0x405138
push esi
xor edi, edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401498
lea ecx, [esi + 0xf]
push ecx
push 0x405144
call fcn.00401d60
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401500
push str.PYTHON27.DLL
push 0x406460
push 0x405164
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401d60
add esp, 0x1c
test eax, eax
jne 0x401500
push str.LoadLibrary_pythondll__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
lea ecx, [esp + 0x10]
push ecx
push 0
call section..text
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x308
ret
mov eax, 1
pop esi
add esp, 0x308
ret

Function at 0x401540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x304
push esi
mov esi, dword [esp + 0x30c]
push str.ZLIB.PYD
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4015ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401654
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x40518c
call fcn.00402520
add esp, 8
test eax, eax
je 0x401654
push 0x405198
push eax
call fcn.00402230
add esp, 8
test eax, eax
je 0x401654
pop esi
add esp, 0x304
jmp eax
push str.zlib.pyd
push 0x406460
push 0x4051bc
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4015f7
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4015f7
call eax
pop esi
add esp, 0x304
ret
push edi
push 0
mov eax, 0x405e20
call fcn.00401350
mov esi, eax
add esp, 4
mov edi, esi
test esi, esi
je 0x401653
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40162e
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
pop ebx
test eax, eax
jne 0x40164c
add edi, 0xe
push edi
call fcn.00401510
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x4018e0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401220
add esp, 4
test eax, eax
jne 0x4018f9
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.004013e0
add esp, 4
test eax, eax
je 0x4018f2
mov eax, dword [0x40668c]
cmp dword [eax + 8], 0
push esi
je 0x401944
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405238
call esi
add esp, 4
test eax, eax
je 0x401973
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x40582c]
add esp, 8
mov dword [ecx], eax
jmp 0x40197f
mov edx, dword [0x40582c]
mov dword [edx], 0
mov eax, dword [0x405844]
mov dword [eax], 1
mov ecx, dword [0x405834]
mov dword [ecx], 1
mov edx, dword [0x40668c]
mov eax, dword [edx + 4]
mov ecx, dword [0x40583c]
push 0x406140
mov dword [ecx], eax
call dword [0x4056d4]
add esp, 4
call fcn.00401660
call dword [0x405744]
test eax, eax
jne 0x4019d5
call fcn.004016f0
test eax, eax
jne 0x401a3b
call dword [0x4056ac]
jmp 0x4019de
call fcn.004017d0
test eax, eax
jne 0x401a3b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401a0b
push 1
call dword [0x405824]
push eax
push 0x405258
call dword [0x4057c4]
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x4057d4]
mov esi, eax
add esp, 4
test esi, esi
je 0x401a30
push esi
push 0x405260
call dword [0x4057c4]
push esi
call fcn.00401c40
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401b90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x4057ec]
push 1
call dword [0x405854]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401bf0
call dword [0x4056c4]
push eax
call dword [0x4057d4]
add esp, 4
test eax, eax
je 0x401be7
push eax
push 0
push esi
call dword [0x40585c]
add esp, 0xc
test eax, eax
jne 0x401be7
push esi
push 0x405288
call dword [0x4057c4]
add esp, 8
push esi
call fcn.00401c40
add esp, 4
call fcn.00401aa0
push 0x405268
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401c35
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405278
call esi
push eax
call dword [0x4057dc]
add esp, 8
test eax, eax
je 0x401c35
push 0x405280
call esi
push eax
call dword [0x4057e4]
add esp, 8
call dword [0x4056bc]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401cb0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x4056a8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cc1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401cda
cmp byte [eax], 0x5c
je 0x401cdf
dec eax
cmp eax, edi
jne 0x401cd0
cmp byte [eax], 0x5c
jne 0x401ce0
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401cfa
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401d54
cmp dword [0x4056a8], 0
je 0x401d25
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401d2e
add esi, 8
cmp dword [esi], 0
jne 0x401d10
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x405874
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x405884
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401d60
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, 0x4056a8
test eax, eax
jne 0x401d7d
mov eax, dword [esp + 8]
push eax
call fcn.00401cb0
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402520
mov edi, eax
add esp, 8
test edi, edi
je 0x401de9
cmp dword [0x4056a8], 0
je 0x401dbb
jmp 0x401da0
mov edx, dword [esi]
push edx
push edi
call fcn.00402230
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x401dc3
add esi, 8
cmp dword [esi], 0
jne 0x401da0
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
push eax
push str.undefined_symbol__s____exit__1__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
Function at 0x401f60
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x402007
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401fc2
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x401feb
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCR90.dll_memset
jmp 0x401fe8
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401f93
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x402010
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x4020c7
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402067
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4020af
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov esi, dword [ecx*4 + 0x4058dc]
test eax, 0x4000000
je 0x402081
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40209c
test al, 0x40
je 0x402093
mov ecx, dword [ebx + 0x20]
jmp 0x40209a
test al, al
jns 0x4020af
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x4020af
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x402034
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402520
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, dword [0x405dfc]
push edi
test esi, esi
je 0x40254c
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x40256b
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x402533
push ebp
mov ebp, dword [esp + 0x18]
mov edx, 0x5a4d
cmp word [ebp], dx
je 0x402574
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
inc dword [esi + 0x1c]
pop edi
mov eax, esi
pop esi
pop ecx
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x402592
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x4025d3
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4025d3
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi + 4], edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
push 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov ecx, dword [ebx + 0x50]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [ebx + 0x54]
mov dword [esp + 0x10], eax
push ecx
push ebp
push eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x1c]
push esi
add eax, edx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00401f60
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x40267a
push eax
mov eax, esi
call fcn.004020d0
add esp, 4
push esi
call fcn.004023a0
add esp, 4
test eax, eax
je 0x4026b2
push esi
call fcn.00402010
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
add esp, 4
test eax, eax
je 0x4026d4
add eax, edi
jne 0x4026a7
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4026b2
push 0
push 1
push edi
call eax
test eax, eax
jne 0x4026cd
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_free]
push esi
call fcn.004022c0
add esp, 8
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
call fcn.00401df0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x431002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x307b616d
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x78822bd0
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
add esp, 0x54
ret

Function at 0x402000
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 8]
ret 8

Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
ret 8
Function at 0x10001ec0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x10001f3b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.10085b4e
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10001ef7
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x10001f0e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.10085b4e
add esp, 4
test eax, eax
jbe 0x10001f3b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.10085b4e
add esp, 4
cmp esi, eax
jb 0x10001f20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10002c90
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x100e56a0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
push esi
jne 0x10002cbd
push eax
push str.Setupapi.dll
call fcn.10002600
add esp, 8
test eax, eax
mov dword [0x100e56a0], eax
je 0x10002df6
cmp dword [0x100e56a4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x10002ce6
push str.SetupDiGetClassDevsW
push eax
call esi
test eax, eax
mov dword [0x100e56a4], eax
je 0x10002df6
mov eax, dword [0x100e56a0]
cmp dword [0x100e56a8], 0
jne 0x10002d09
push str.SetupDiEnumDeviceInfo
push eax
call esi
test eax, eax
mov dword [0x100e56a8], eax
je 0x10002df6
mov eax, dword [0x100e56a0]
cmp dword [0x100e56b0], 0
jne 0x10002d2c
push str.SetupDiGetDeviceRegistryPropertyW
push eax
call esi
test eax, eax
mov dword [0x100e56b0], eax
je 0x10002df6
mov eax, dword [0x100e56a0]
cmp dword [0x100e56ac], 0
jne 0x10002d4f
push str.SetupDiGetDeviceInterfaceDetailW
push eax
call esi
test eax, eax
mov dword [0x100e56ac], eax
je 0x10002df6
mov eax, dword [0x100e56a0]
cmp dword [0x100e56b8], 0
jne 0x10002d6d
push str.SetupDiDestroyDeviceInfoList
push eax
call esi
test eax, eax
mov dword [0x100e56b8], eax
je 0x10002df6
push 6
push 0
push 0
push 0
call dword [0x100e56a4]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x10002df8
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
push edi
push eax
mov dword [ecx + 0x18], eax
push esi
mov dword [edi], 0x1c
call dword [0x100e56a8]
test eax, eax
je 0x10002def
lea ecx, [ecx]
push esi
push ebp
mov eax, edi
call fcn.10002230
add esp, 8
cmp eax, 1
je 0x10002dfc
xor edx, edx
mov eax, edi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
push edi
add ebx, 1
mov dword [eax + 0x14], edx
push ebx
mov dword [eax + 0x18], edx
push esi
mov dword [edi], 0x1c
call dword [0x100e56a8]
test eax, eax
jne 0x10002db0
push esi
call dword [0x100e56b8]
xor eax, eax
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x10003630
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x100e5768], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x100036c6
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x100e5768
mov dword [0x100e5768], 0x11c
mov dword [0x100e576c], 6
mov dword [0x100e5770], 1
mov word [0x100e587c], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x100de974], eax
jmp 0x100036cb
mov eax, dword [0x100de974]
cmp eax, esi
je 0x100036da
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x100037fa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x100037f8
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x100037f8
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x100037f8
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x10003730
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x100037af
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x100037f8
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100037f8
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x100037f8
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10003796
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x100b7264
push 0x26
jmp 0x100037b5
cmp word [esi + edi*2 - 4], 0x5c
je 0x100037c3
push 0x100b7544
add edi, 1
push edi
push esi
call fcn.100034a0
jmp 0x100037c3
push 0x100b7264
push eax
call fcn.10003540
mov esi, eax
add esp, 8
test esi, esi
je 0x100037f8
push esi
call fcn.10085b4e
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.100862b3
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x100037f8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x10003730
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x10003ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.10003a30
mov esi, eax
add esp, 4
test esi, esi
je 0x10003be2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10003bc4
test al, 0x50
je 0x10003be2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10003bd7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x1000be60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000beb9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000beb9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000beaa
cmp esi, edx
jae 0x1000beb9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000be98
cmp esi, edx
jae 0x1000beb9
cmp word [esi], 0
je 0x1000beb9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000e7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100dfa44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.10035b33
mov edi, eax
add esp, 4
test edi, edi
je 0x1000e893
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10029ad7
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000e895
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10007f00
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1000e8f5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000e8f5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x1000e919
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1000e93b
cmp byte [ebp + 0xc], 0
je 0x1000e928
push esi
call fcn.10029ffe
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1000e947
mov esi, str.ios_base::badbit_set
jmp 0x1000e957
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1000e980
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.10008eb0
push 0x100d1c84
lea eax, [ebp - 0x30]
push eax
call fcn.1007b3a7
int3