joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd2f6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x4bd48d
push dword [esp + 0x28]
call fcn.00443bc9
test eax, eax
je 0x4bd336
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4bd48d
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x4bd47a
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4bd472
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00425a40
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4bd472
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x4bd472
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x4bd472
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x4bd469
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x4bd441
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x4bd424
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x4bef50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4bf0d5
cmp dword [esi + 0x20], 0
je 0x4bf0d5
cmp dword [esi + 0x24], 0
je 0x4bf0d5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4bf0d5
cmp dword [eax], esi
jne 0x4bf0d5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x4befb5
cmp eax, 0x39
je 0x4befb5
cmp eax, 0x45
je 0x4befb5
cmp eax, 0x49
je 0x4befb5
cmp eax, 0x5b
je 0x4befb5
cmp eax, 0x67
je 0x4befb5
cmp eax, 0x71
je 0x4befb5
cmp eax, 0x29a
jne 0x4bf0d5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x4befee
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x4bf010
call fcn.0044bdd0
jmp 0x4bf015
call fcn.0044c360
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.004c0140
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00425a40
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4d7faa]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4d7fa8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4d7fac]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4d7fae]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x401482
Capabilities:
Get common file path

Disassembly:
push 0x18
push 0x480d50
call fcn.004253e0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0x800
lea ecx, [ebp - 0x24]
call fcn.00401414
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push ebx
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x401578
xor ecx, ecx
mov word [ebx + eax*2], cx
push 0x493518
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push eax
push edi
push str._1_X__2_X__3_X_.tmp
call fcn.00401368
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, esi
call fcn.00401400
mov edx, dword [ebp - 0x24]
lea ecx, [edx + 2]
add ecx, eax
mov edi, 0x800
cmp ecx, edi
jb 0x40152d
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x488280
call fcn.0042dd60
add esp, 0xc
xor eax, eax
call fcn.00425425
ret
movzx eax, word [ebx + edx*2 - 2]
cmp eax, 0x2f
je 0x401549
push 0x5c
pop ecx
cmp eax, ecx
je 0x401549
mov word [ebx + edx*2], cx
xor eax, eax
mov word [ebx + edx*2 + 2], ax
push esi
push edi
push ebx
call fcn.0042056e
or dword [ebp - 0x28], 0xffffffff
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040142e
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x488280
call fcn.0042dd60
add esp, 0x18
mov eax, esi
jmp 0x401527
mov dword [ebp - 4], 0xfffffffe
call fcn.00401586
jmp 0x401525

Function at 0x4016cb
Capabilities:
Read file via mapping

Disassembly:
push 0x18
push 0x480db0
call fcn.004253e0
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1d], bl
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00401641
mov esi, eax
mov edi, edx
cmp edi, ebx
jl 0x40177a
jg 0x401703
cmp esi, ebx
jbe 0x40177a
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x40177a
mov ecx, dword [ebp - 0x28]
call fcn.004012ca
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x40177a
push ebx
push ebx
push ebx
push 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x40177a
push ebx
push ebx
push ebx
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
test eax, eax
je 0x40177a
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov byte [ebp - 0x1d], 1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x488280
call fcn.0042dd60
add esp, 0xc
mov eax, dword [ebp - 0x24]
jmp 0x401788
mov dword [ebp - 4], 0xfffffffe
call fcn.00401791
xor eax, eax
call fcn.00425425
ret
Function at 0x403861
Capabilities:
Get hostname

Disassembly:
push 0xc
mov eax, 0x46cd9f
call fcn.0042d88d
mov edi, ecx
and dword [ebp - 0x18], 0
push 0x20
call fcn.00420c74
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4038ab
mov eax, dword [ebp - 0x10]
mov ecx, edi
lea eax, [esi + eax*2]
push eax
push esi
call fcn.00404bbd
jmp 0x403912
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x403906
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420c74
mov ebx, eax
pop ecx
test esi, esi
je 0x4038dc
push esi
call fcn.00420c7d
pop ecx
lea eax, [ebp - 0x10]
mov esi, ebx
push eax
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x403906
mov eax, dword [ebp - 0x10]
mov ecx, edi
lea eax, [ebx + eax*2]
push eax
push ebx
call fcn.00404bbd
test ebx, ebx
je 0x40391d
push ebx
jmp 0x403917
push 0x479dd0
mov ecx, edi
call fcn.00403e32
test esi, esi
je 0x40391d
push esi
call fcn.00420c7d
pop ecx
mov eax, edi
call fcn.0042d85b
ret

Function at 0x403925
Capabilities:
Get user security identifier

Disassembly:
push 0x28
mov eax, 0x46cdc2
call fcn.0042d88d
mov edi, edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push 0x400
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
call fcn.00404647
mov esi, dword [ebp - 0x34]
test edi, edi
je 0x4039f2
mov eax, dword [ebp - 0x30]
sub eax, esi
mov dword [ebp - 0x14], 0x44
sar eax, 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x4039ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4039ed
cmp dword [ebp - 0x14], 0x44
ja 0x4039f2
cmp dword [ebp - 0x10], 0x400
jbe 0x4039d1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], esi
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.00404647
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x4039fd
push esi
call fcn.00416f36
pop ecx
mov al, bl
call fcn.0042d85b
ret
Function at 0x403ad7
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0x23c
mov eax, 0x46ce3d
call fcn.0042d8c0
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x248], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
xor ebx, ebx
mov dword [ebp - 4], edi
inc ebx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x248], ebx
call fcn.00403a05
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x403b4b
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
push dword [ebp - 0x244]
cmovae ecx, dword [ebp - 0x23c]
lea eax, [ecx + eax*2]
push eax
push ecx
push dword [esi + 4]
mov ecx, esi
call fcn.00404c92
xor eax, eax
mov dword [ebp - 0x240], edi
push 0x208
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push edi
push eax
call fcn.0042b410
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403bde
lea eax, [ebp - 0x224]
push 0x47a500
push eax
call fcn.00420c82
pop ecx
pop ecx
test eax, eax
je 0x403ba2
xor ecx, ecx
mov word [eax + 2], cx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x240]
push eax
push edi
push edi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x403bde
push dword [ebp - 0x244]
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
lea eax, [ebp - 0x240]
push eax
push dword [esi + 4]
call fcn.00404c92
push edi
push ebx
lea ecx, [ebp - 0x23c]
call fcn.004041b3
mov eax, esi
call fcn.0042d86f
ret

Function at 0x403bf3
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0xc
mov eax, 0x46ce6d
call fcn.0042d88d
mov esi, ecx
xor eax, eax
xor ebx, ebx
push 0xf0000000
inc ebx
mov dword [ebp - 4], eax
push ebx
push eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403c6c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor edi, edi
push edi
test eax, eax
je 0x403c63
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403c7e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00403f5f
mov al, bl
call fcn.0042d85b
ret
push 0x10
mov ecx, esi
call fcn.00403f0b
mov eax, dword [esi + 4]
sub eax, dword [esi]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x10]
test eax, eax
je 0x403c5c
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403c6e
Function at 0x404e8f
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x488280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x38], edx
push ebx
push 1
push ebx
push ebx
push eax
mov esi, ecx
call edi
test eax, eax
jne 0x404ed5
push 8
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x404ed5
xor al, al
jmp 0x404fb6
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x404ef9
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x404ece
mov eax, dword [esi + 0x10]
push 0x10
pop edi
cmp dword [esi + 0x14], edi
jb 0x404f06
mov esi, dword [esi]
push ebx
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x404f21
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x404eed
push ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x30]
test eax, eax
je 0x404f19
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x34], edi
jne 0x404ece
mov esi, 0x47a550
lea edi, [ebp - 0x28]
push ebx
push 0x20
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.00405006
mov edx, ebx
cmp dword [esi + 0x14], 0x10
jb 0x404f7e
mov ecx, dword [esi]
jmp 0x404f80
mov ecx, esi
movzx eax, byte [ebp + edx - 0x14]
shr eax, 4
mov al, byte [ebp + eax - 0x28]
mov byte [ecx + ebx], al
cmp dword [esi + 0x14], 0x10
jb 0x404f99
mov eax, dword [esi]
jmp 0x404f9b
mov eax, esi
movzx ecx, byte [ebp + edx - 0x14]
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x28]
mov byte [eax + ebx + 1], cl
add ebx, 2
inc edx
cmp edx, 0x10
jb 0x404f74
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420225
mov esp, ebp
pop ebp
ret
Function at 0x408224
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov eax, edx
push edi
mov edi, ecx
cmp dword [0x493520], ebx
jne 0x40826e
mov esi, ebx
push 8
mov eax, esi
pop ecx
test al, 1
je 0x40824d
shr eax, 1
xor eax, 0xedb88320
jmp 0x40824f
shr eax, 1
dec ecx
jne 0x408240
mov dword [esi*4 + 0x493570], eax
inc esi
cmp esi, 0x100
jl 0x40823b
mov dword [0x493520], 1
mov eax, edx
add eax, edi
xor ecx, ecx
mov esi, eax
or edx, 0xffffffff
sub esi, edi
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x40829a
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x493570]
inc edi
inc ebx
cmp ebx, esi
jb 0x408282
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408797
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40885a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x408859
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4087eb
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4087eb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4087ef
xor eax, eax
jmp 0x408858
push edi
push ebx
push eax
call fcn.00426b30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x40881d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x408847
mov ecx, dword [ebp - 4]
lea eax, [esi + 4]
and dword [eax], 0
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x408849
xor esi, esi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x408856
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40885f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10], ebx
jne 0x40886b
xor al, al
pop ebx
ret
cmp dword [ecx + 0x14], 8
jb 0x408873
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408885
test al, 0x10
jne 0x408885
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x408889
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10], ebx
jne 0x408895
xor al, al
pop ebx
ret
cmp dword [ecx + 0x14], 8
jb 0x40889d
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4088af
test al, 0x10
je 0x4088af
mov bl, 1
mov al, bl
pop ebx
ret
Function at 0x408be9
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x46d3ac
call fcn.0042d8c0
mov esi, ecx
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push edi
push eax
mov dword [ebp - 0x270], edi
call fcn.0042b410
add esp, 0xc
call fcn.004088b3
test al, al
je 0x408cd8
lea eax, [ebp - 0x224]
push eax
push edi
push edi
push 0x24
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x408c4d
push 0x479dd0
jmp 0x408cf9
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00403e32
push str._temp
mov edx, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x26c]
call fcn.00405987
pop ecx
mov ecx, eax
call fcn.00408889
push edi
push 1
lea ecx, [ebp - 0x26c]
mov bl, al
call fcn.004041b3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
push edi
push 1
call fcn.004041b3
test bl, bl
je 0x408cd8
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.00403e32
xor ebx, ebx
mov edx, eax
inc ebx
mov ecx, esi
push str._temp
mov dword [ebp - 4], ebx
call fcn.00405987
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x254]
call fcn.004041b3
jmp 0x408d00
lea eax, [ebp - 0x224]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408c43
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
call fcn.00403e32
mov eax, esi
call fcn.0042d86f
ret
Function at 0x408d08
Capabilities:
Get common file path

Disassembly:
push 0x2ec
mov eax, 0x46d40b
call fcn.0042d8c0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x248], ebx
call fcn.004088b3
test al, al
je 0x408d78
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.0042b410
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x408d6f
push 0x479dd0
call fcn.00403e32
jmp 0x408f27
lea eax, [ebp - 0x220]
push eax
jmp 0x408d65
mov dword [ebp - 0x23c], ebx
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], ebx
push eax
push 0x47aaac
push 1
push ebx
push 0x471590
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408ecd
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x408ecd
mov dword [ebp - 0x240], ebx
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
push edx
push 0x471540
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x408ea3
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x408ea3
lea edx, [ebp - 0x244]
mov dword [ebp - 0x244], ebx
mov ecx, dword [eax]
push edx
push 0x8000
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x408e62
push 1
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.00411b3f
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 4
test eax, eax
je 0x408e2b
mov edx, str.Cant_get_folder_path
lea ecx, [ebp - 0x2e8]
call fcn.0040a46c
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 2
call fcn.00411856
push 0x479dd0
mov ecx, esi
call fcn.00403e32
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x408f13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408f13
push dword [ebp - 0x244]
lea ecx, [ebp - 0x238]
call fcn.00403e32
push dword [ebp - 0x244]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x238]
mov dword [ebp - 0x244], ebx
push eax
mov ecx, esi
call fcn.00403e63
push ebx
push 1
lea ecx, [ebp - 0x238]
call fcn.004041b3
jmp 0x408e46
push 1
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.00411b3f
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 3
test eax, eax
je 0x408e2b
mov edx, str.Cant_get_path
jmp 0x408e20
push 1
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.00411b3f
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 1
test eax, eax
je 0x408ef9
mov edx, str.Cant_get_path_manager
lea ecx, [ebp - 0x2e8]
call fcn.0040a46c
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], bl
call fcn.00411856
push 0x479dd0
mov ecx, esi
call fcn.00403e32
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x408f27
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.0042d86f
ret