joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cc8c81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5cdc080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5cc8ccc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.05cc8e1c
test al, al
jne 0x5cc8cc6
sub edx, 2
cmp edx, edi
jne 0x5cc8cac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5cc8cee
lea eax, [edi + 2]
cmp edx, eax
je 0x5cc8cee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.05cc8bcd
add esp, 0x10
jmp 0x5cc8de8
push esi
lea ecx, [ebp - 0x255]
call fcn.05cc8e1c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5cc8d31
push dword [ebp - 0x25c]
jmp 0x5cc8cde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5cc8d6e
cmp word [ebp - 0x226], 0
je 0x5cc8d8f
cmp word [ebp - 0x226], ax
jne 0x5cc8d6e
cmp word [ebp - 0x224], 0
je 0x5cc8d8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.05cc8bcd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5cc8ddb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5cc8d48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5cc8dc3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5cc8de8
push 0x5cc89fd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.05ccdfa0
add esp, 0x10
jmp 0x5cc8db8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05cb8559
leave
ret
Function at 0x5cc96fe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5cc979b
push ebx
push esi
call fcn.05cc96c7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.05cc8658
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5cc9748
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5cc979a
push edi
push eax
call fcn.05cc62a6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5cc9768
call fcn.05cc40f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5cc9799
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.05cc8658
add esp, 0x20
test eax, eax
jne 0x5cc9787
push edi
call fcn.05cc40f1
jmp 0x5cc978f
push ebx
call fcn.05cc40f1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5ccbfbb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.05cc2fef
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ccc02a
cmp esi, dword [ebp - 4]
je 0x5ccc025
cmp dword [ebp + 0xc], 0
je 0x5ccc025
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5ccc002
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.05ccbb0d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5ccc02c
xor eax, eax
inc eax
jmp 0x5ccc02c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5ccc091
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5cdc080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.05cc2fef
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.05cc2fef
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5ccc108
cmp word [ecx], dx
je 0x5ccc108
mov eax, dword [0x5cd4a64]
push edi
dec eax
push eax
push 0x5cd4950
call fcn.05ccc030
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5ccc17b
cmp word [eax], dx
je 0x5ccc17b
mov eax, dword [edi]
test eax, eax
je 0x5ccc12c
cmp word [eax], dx
je 0x5ccc12c
lea eax, [ebp - 0x10]
push eax
call fcn.05ccba13
jmp 0x5ccc135
lea eax, [ebp - 0x10]
push eax
call fcn.05ccbaae
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5ccc1a5
mov eax, dword [0x5cd494c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5cd4640
call fcn.05ccc030
add esp, 0xc
test al, al
je 0x5ccc1a5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5ccc170
cmp word [eax], di
je 0x5ccc170
lea eax, [ebp - 0x10]
push eax
call fcn.05ccba13
pop ecx
jmp 0x5ccc1a7
lea eax, [ebp - 0x10]
push eax
call fcn.05ccbaae
jmp 0x5ccc16d
mov eax, dword [edi]
test eax, eax
je 0x5ccc192
cmp word [eax], dx
je 0x5ccc192
lea eax, [ebp - 0x10]
push eax
call fcn.05ccb9c8
pop ecx
jmp 0x5ccc1a5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5ccc270
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.05ccbeb5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5ccc270
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5ccc270
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5ccc270
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5ccc1fd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.05cc4d03
test ebx, ebx
je 0x5ccc26b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.05cc4d03
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ccc270
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ccc270
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.05cce6a2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5ccc272
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05cb8559
leave
ret
Function at 0x5cceaff
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.05ccea7b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5ccec6e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5ccec6e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5ccec23
jg 0x5cceb5b
test eax, eax
je 0x5ccec19
push 1
push 0x1000
call fcn.05cc466f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5cceb7e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5ccec10
push 0x8000
push ebx
call fcn.05cc04f3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5cceba7
jg 0x5cceba2
cmp ecx, 0x1000
jb 0x5cceba7
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.05cc3ed5
add esp, 0x10
cmp eax, 0xffffffff
je 0x5ccebec
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5cceba2
jl 0x5ccebd3
test ecx, ecx
jne 0x5cceb94
push dword [ebp - 0xc]
push ebx
call fcn.05cc04f3
push esi
call fcn.05cc40f1
add esp, 0xc
xor ebx, ebx
jmp 0x5ccec7c
cmp byte [edi + 0x24], 0
je 0x5ccec03
cmp dword [edi + 0x20], 5
jne 0x5ccec03
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5ccec0e
mov ebx, dword [edi + 0x18]
jmp 0x5ccec10
xor ebx, ebx
push esi
call fcn.05cc40f1
pop ecx
jmp 0x5ccec7c
test ecx, ecx
jg 0x5ccebe5
jl 0x5ccec23
test eax, eax
jae 0x5ccebe5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.05cc6248
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5ccec43
cmp byte [edi + 0x1c], 0
je 0x5ccebe5
jmp 0x5ccec74
push ebx
call fcn.05cc9f8c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5ccebe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5ccec7c
cmp byte [edi + 0x1c], 0
je 0x5ccec79
mov ebx, dword [edi + 0x18]
jmp 0x5ccec7c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.05cc6248
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5ccff70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5ccff9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5ccff9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404cd0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x38
push edi
mov edi, ecx
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x404ce6
mov al, 1
pop edi
add esp, 0x38
ret 8
push ebx
push ebp
push esi
push 0xd
mov dword [esp + 0x20], 9
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
push esi
push esi
push 0x1200
push eax
mov byte [esp + 0x23], 1
call ebx
xor ebp, ebp
mov dword [esp + 0x18], eax
test eax, eax
jle 0x404d71
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x1203
push edx
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add esi, eax
mov eax, 1
shl eax, cl
test dword [edi + 0x48], eax
je 0x404d68
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
cdq
sub eax, edx
mov edx, esi
sar eax, 1
sub edx, eax
cmp ecx, edx
jle 0x404d68
add eax, esi
cmp ecx, eax
jge 0x404d68
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x404d21
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x38
ret 8

Function at 0x4055b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x415e02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.004150be
lea edi, [esi + 0x5c]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 2
call fcn.00406d30
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 3
call fcn.00407860
lea ecx, [esi + 0x114]
mov byte [esp + 0x18], 4
call fcn.00407450
mov al, byte [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov byte [esi + 0x46], al
mov eax, dword [esp + 0x24]
push 0x7fe2
push ebx
mov byte [esp + 0x20], 5
mov dword [esi], 0x418030
mov dword [esi + 0x64], ecx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [esp + 0x28]
mov dword [esi + 0x68], eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 0x15
mov dword [esi + 0x154], esi
mov dword [esi + 0xc0], esi
mov dword [esi + 0x10c], esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dl, byte [esp + 0x30]
or edi, 0xffffffff
push 8
mov dword [esi + 0x50], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x4c], dl
mov byte [esi + 0x160], 1
mov dword [esi + 0x48], edi
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], 1
call dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [esp + 0x28]
mov dword [esi + 0x164], eax
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x411960
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x416b27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x419058
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CImageList::CImageList
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x41903c
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00412480
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4124d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x416c00
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
and ebx, 0xffff
push 0xf1
mov esi, ecx
push ebx
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
xor ebp, ebp
cmp edi, ebp
jne 0x412512
xor al, al
jmp 0x412634
push 0xf1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x41252a
xor al, al
jmp 0x412634
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x41253d
xor al, al
jmp 0x412634
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x412551
xor al, al
jmp 0x412634
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CImageList::Create
test eax, eax
jne 0x412585
xor al, al
jmp 0x412634
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x417eb4
push ebx
push 2
push ebx
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x412619
mov ax, word [ebx]
test ax, ax
je 0x41260b
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00412650
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4125ef
mov dword [esp + 0x10], 0x417edc
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x414af8
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x4197f8
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret
Function at 0x414c10
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
push edi
push 0x40
push 0x3000
push 0x4da78
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov eax, dword [0x41d5b0]
add edi, 0x4da90
push eax
push edi
push esi
call fcn.00414ba0
add esp, 0xc
test eax, eax
jne 0x414c47
pop edi
pop esi
ret
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401000
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jne 0x401016
mov eax, 0x80070057
pop ebx
add esp, 8
ret
push esi
push edi
push 0x44283c
push 0x2c
call fcn.004036b1
add esp, 8
mov edi, 1
cmp eax, ebx
je 0x40104e
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], edi
mov dword [eax + 0x28], edi
mov esi, eax
jmp 0x401050
xor esi, esi
mov eax, esi
mov dword [esp + 0x10], eax
cmp esi, ebx
jne 0x40106e
mov ecx, dword [esp + 0x18]
mov edi, 0x8007000e
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call ebp
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x401161
push esi
push eax
push edi
call fcn.00401742
mov edi, eax
cmp edi, ebx
jl 0x401186
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 8
push ecx
call fcn.0040189d
mov edi, eax
cmp edi, ebx
jl 0x401186
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esi + 0x10], eax
cmp eax, 0x400
jbe 0x4010d6
mov edi, 0x80070008
mov dword [esi + 0x10], ebx
jmp 0x401186
push 0x44283c
push eax
call fcn.004036e0
add esp, 8
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x4010f8
mov dword [esi + 0x10], ebx
mov edi, 0x8007000e
jmp 0x401186
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push 8
push eax
call fcn.0040189d
mov edi, eax
cmp edi, ebx
jl 0x401186
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esi + 0x1c], eax
cmp eax, 0x400
jbe 0x401128
mov edi, 0x80070008
mov dword [esi + 0x1c], ebx
jmp 0x401186
push 0x44283c
push eax
call fcn.004036e0
add esp, 8
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x401147
mov dword [esi + 0x1c], ebx
mov edi, 0x8007000e
jmp 0x401186
push ebx
call ebp
push ebx
push ebx
push esi
push 0x401490
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x401182
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x401174
mov edi, 0x507
jmp 0x401176
jle 0x401182
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jge 0x4011e6
mov eax, dword [esi]
cmp eax, ebx
je 0x401194
push eax
call fcn.00401778
mov dword [esi], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4011a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4011b8
push eax
call fcn.004036eb
add esp, 4
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4011cb
push eax
call fcn.004036eb
add esp, 4
mov dword [esi + 0x18], ebx
push esi
call fcn.004036f6
mov ecx, dword [esp + 0x20]
add esp, 4
xor eax, eax
pop ebp
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop ebp
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x401580
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov eax, esi
call fcn.00401660
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x8000000
push str.DARK_SOULS_LAUNCHER
push str.DARK_SOULS_LAUNCHER
push 0x80
mov dword [0x4433f0], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x401652
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov esi, eax
push 0
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
je 0x401646
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
lea esp, [esp]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x401633
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
jne 0x401610
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10

Function at 0x4019d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x20], 3
je 0x4019e7
mov eax, 0x8000ffff
jmp 0x401a62
cmp dword [esi + 0x2c], 2
jne 0x401a03
push 0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401a03
mov eax, 0x80004004
jmp 0x401a62
and dword [esi + 0x18], 0
and dword [esi + 0x14], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401a56
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401a3f
mov eax, 0x507
jmp 0x401a4a
cmp eax, 0x3e5
je 0x401a56
test eax, eax
jle 0x401a62
and eax, 0xffff
or eax, 0x80070000
jmp 0x401a62
mov dword [esi + 0x20], 1
mov eax, 0x8000000a
pop esi
leave
ret 8