joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f94b
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x40f9c6
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40fafb
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x40f9a2
push str.CreateThread_failed
push 0x43cbe8
call fcn.00406c53
pop ecx
pop ecx
mov ecx, 0x43cbe8
call fcn.00406d83
push 2
mov ecx, 0x43cbe8
call fcn.00406c4e
mov dword [edi], ebp
inc dword [esi + 0x84]
mov eax, dword [0x441e70]
test eax, eax
je 0x40f9bc
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x40f95b
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x417acf
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov edi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [ecx + 0x48]
test eax, eax
js 0x417b06
cmp dword [esp + 0x10], 0
jne 0x417b4e
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x417b4e
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x417af0
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x417af0
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [eax + 0x48]
mov ebx, eax
test ebx, ebx
js 0x417bbc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x417bb4
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x43181c
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x417ba6
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
js 0x417b9c
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
test ebx, ebx
js 0x417bbc
test ecx, ecx
jne 0x417c0d
xor ebp, ebp
cmp dword [esi + 8], ebp
je 0x417c0d
cmp dword [esi + 0x18], ebp
jne 0x417c0d
cmp dword [esi + 0x14], ebp
je 0x417c0d
push dword [esi + 0x14]
mov ecx, esi
call fcn.004180f8
mov edi, eax
test edi, edi
je 0x417c0d
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00421e50
pop ecx
pop edi
not ebx
pop esi
shr ebx, 0x1f
pop ebp
mov al, bl
pop ebx
add esp, 0x24
ret 8
Function at 0x4182cd
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x1e], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.00418042
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x418337
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x4310f8
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x4183b9
test ebp, ebp
je 0x4183cf
cmp dword [ebx + 0x18], esi
jne 0x4183cf
cmp dword [ebx + 0x14], esi
je 0x4183cf
push dword [ebx + 0x14]
mov ecx, ebx
call fcn.004180f8
mov esi, eax
test esi, esi
je 0x4183cf
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00421e50
pop ecx
jmp 0x4183cf
test eax, eax
je 0x4183cf
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x41871c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x43178c
push 1
push ebx
push 0x43185c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4187ed
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x43184c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4187e4
cmp byte [ebp + 8], bl
je 0x41876f
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x41878c
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x41879e
push 0x4302e4
jmp 0x4187a1
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4187b6
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4187c7
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x4187db
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4188c4
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x418906
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x431304
push dword [esp + 0x10]
push dword [0x43cba4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4189fc
push ebx
push esi
push dword [0x43cba4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x418959
push esi
push dword [0x43cba4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418959
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x418960
xor eax, eax
jmp 0x4189fb
push ebp
push edi
push ebx
xor ebp, ebp
push 2
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4189f5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4189ee
push ebx
push esi
push eax
call fcn.0041dd20
add esp, 0xc
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
push eax
push ebp
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4189e7
push ebp
push dword [esp + 0x1c]
call fcn.0041889b
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x4189e7
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x4189df
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x4189df
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x418f6f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041cbd0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.004188c4
cmp byte [0x44e7f2], 0
jne 0x419004
push 6
push dword [0x43a14c]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040b639
push eax
call fcn.00410873
test eax, eax
jne 0x419004
push 0x43055c
call fcn.00418d59
lea eax, [ebp - 0x1020]
push eax
call fcn.00421e35
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x101e], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041dbc0
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret
Function at 0x419060
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43a164], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x4190ab
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45791c], ax
xor eax, eax
mov word [0x45791e], ax
mov dword [0x43a164], 0x45791c
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040edd0
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43a154
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4192a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041cbd0
cmp byte [0x442128], 0
je 0x419351
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041a705
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419351
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419348
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41932c
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040eeb0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x4193fd
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041cbd0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x419418
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x419425
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x4194e8
movzx eax, word [esi]
test ax, ax
je 0x4194e8
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x419472
test edi, edi
je 0x41947c
test ebx, ebx
jne 0x41947c
test ecx, ecx
je 0x41946e
mov byte [ecx], 1
mov ebx, ebp
jmp 0x419493
cmp eax, 0xd
je 0x4194a6
cmp eax, 0xa
je 0x4194a9
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x4194a1
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x419454
jmp 0x4194a9
mov byte [edx], 1
jmp 0x4194a9
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x4194e2
mov word [edi], ax
test ebx, ebx
je 0x4194e2
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040eeb0
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x4194ea
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x4194f5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x419544
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x41954c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41b93c
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4420f8], 0
push 1
push dword [esp + 8]
mov byte [0x4420f5], 1
mov byte [0x4420f6], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401273
cmp dword [0x442100], 0
jne 0x41b97c
cmp byte [0x44211b], 0
je 0x41b985
cmp dword [0x442114], 0
jne 0x41b998
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41ba98
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041cbd0
cmp byte [0x442128], 0
je 0x41bb22
cmp word [0x456918], 0
je 0x41bb22
push esi
lea eax, [ebp - 0x1008]
push eax
push 0x456918
call fcn.0041a705
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41bb21
push dword [ebp + 8]
call fcn.00421e35
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41bb28
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041cbd0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040eca5
mov esi, eax
test esi, esi
je 0x41bb80
movzx ecx, word [esi]
push ecx
jmp 0x41bb6b
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040ed9c
test al, al
jne 0x41bb64
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x66a1f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a3000]
push edi
jmp 0x66a20a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x66a211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66a200
mov eax, 1
add ebx, ebx
jne 0x66a223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x66a234
jne 0x66a253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66a253
dec eax
add ebx, ebx
jne 0x66a240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x66a218
add ebx, ebx
jne 0x66a24f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x66a2a5
xor ecx, ecx
sub eax, 3
jb 0x66a26b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x66a2da
sar eax, 1
mov ebp, eax
jmp 0x66a276
add ebx, ebx
jne 0x66a276
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66a244
inc ecx
add ebx, ebx
jne 0x66a284
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66a244
add ebx, ebx
jne 0x66a291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x66a286
jne 0x66a2a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x66a286
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x66a2c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x66a2b6
jmp 0x66a206
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x66a2c4
add edi, ecx
jmp 0x66a206
pop esi
mov edi, esi
mov ecx, 0x8dfa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x66a2e2
cmp byte [edi], 0x19
jne 0x66a2e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x66a2e7
lea edi, [esi + 0x266000]
mov eax, dword [edi]
or eax, eax
je 0x66a35f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26a354]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26a494]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x66a314
mov ecx, edi
jns 0x66a343
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26a498]
or eax, eax
je 0x66a359
mov dword [ebx], eax
add ebx, 4
jmp 0x66a331
call dword [esi + 0x26a4a8]
mov ebp, dword [esi + 0x26a49c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x66a393
sub esp, 0xffffff80
jmp 0x4038e8
Function at 0x402e7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x487c7c]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ee1
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004035de
lea ecx, [esp + 0x1c]
call fcn.00402a0f
cmp eax, dword [esp + 0x14]
je 0x402ef9
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00404017
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402eb1
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409367
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00404017
jmp 0x402ee3

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
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 [0x487c7c], eax
push 0x27
mov esi, 0x485860
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00402e7a
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x403007
lea ecx, [esp + 0x10]
call fcn.004049da
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x403011
cmp byte [ecx + 0x6c], 0
jne 0x403011
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.0040315a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a9f5
Capabilities:
Read file on windows

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

Function at 0x41adef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a430
mov eax, dword [0x432180]
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.00418914
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424d30
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 + 0x487940]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bde6
mov ecx, dword [esi*4 + 0x487940]
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 0x41af86
cmp eax, dword [edi + ecx + 0x24]
jne 0x41af86
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 0x41af86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bde6
add esp, 0x14
test edx, edx
jl 0x41af86
jg 0x41aefc
test eax, eax
jb 0x41af86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af86
jl 0x41af16
cmp dword [ebp - 0x1008], eax
ja 0x41af86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af34
test ebx, ebx
je 0x41af6d
cmp ecx, edi
jae 0x41af6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af5a
cmp byte [ecx + 1], 0xa
jne 0x41af5a
inc ecx
jmp 0x41af5a
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af34
cmp edx, ebx
jne 0x41af34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409367
leave
ret