joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x85c
mov eax, dword [0x725fec]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edx
mov ebx, ecx
test edi, edi
je 0x4f8836
push 0x208
push 0
push edi
call fcn.006440e0
add esp, 0xc
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movlpd qword [esp + 0x24], xmm0
push 0x410
push 0
push eax
call fcn.006440e0
add esp, 0xc
test esi, esi
je 0x4f8724
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x4f8711
push eax
movzx eax, si
push eax
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x4f8724
push 0x206
lea eax, [esp + 0x44]
push esi
push eax
call fcn.0064cf62
add esp, 0xc
cmp word [esp + 0x40], 0
jne 0x4f8743
cmp dword [esp + 0x24], 0
jne 0x4f8743
lea eax, [esp + 0x40]
push eax
push 0x206
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], eax
xor ebx, ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x30], 0x201
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x38], 0x4f8510
mov dword [esp + 0x18], 0x6e9644
mov dword [esp + 0x20], 0x201
mov dword [0x726eb4], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x4f87d8
push 0x410
lea eax, [esp + 0x454]
push ebx
push eax
call fcn.006440e0
add esp, 0xc
lea eax, [esp + 0x450]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4f87d8
push 0x103
lea eax, [esp + 0x454]
push eax
push edi
call fcn.0064cf62
add esp, 0xc
mov ebx, 1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x4f881f
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4f881f
test esi, esi
je 0x4f8806
mov eax, dword [edx]
push esi
push edx
call dword [eax + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4f8819
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.0063db0b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x864]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0063db0b
mov esp, ebp
pop ebp
ret

Function at 0x4fe6e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x4fe710
cmp dword [ebx + 0x80], 0
jne 0x4fe710
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.004fd14f
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.004fe9a6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4fe74a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004fd14f
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4fe781
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004fe7a0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x503377
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x5033c1
call fcn.004fd14f
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5033be
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x503411
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x5033ee
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6a0bf4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x5033ee
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x50340f
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x6a0bf4]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x504511
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x504564
push esi
push dword [ebp + 8]
call fcn.005046fa
mov edi, eax
test edi, edi
je 0x50455f
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x50455f
mov eax, dword [ebp - 8]
jmp 0x504576
mov eax, dword [ebp + 0x10]
jmp 0x504576
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x5070ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x5070f3
call fcn.004fd14f
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5070f3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x50710f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0050f294
mov ebx, eax
test edi, edi
je 0x50710d
test esi, esi
je 0x50710d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x507b0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x507bcc
cmp dword [esi + 0x20], 0
je 0x507bcc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x507bcc
cmp dword [ebp + 8], 0
je 0x507bcc
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004fd14f
push 0x6a2de8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x507b9d
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x507bcc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.005271b4
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x507bbd
test edi, edi
je 0x507bbd
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x507bc8
mov ecx, esi
call fcn.005078b0
mov eax, ebx
jmp 0x507bce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5107d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.004fd547
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.005109e9
cmp esi, 3
je 0x51080e
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x510857
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x510831
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0045ee70
jmp 0x510842
push 0xff
mov ecx, esi
call fcn.00403a90
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0045ee20
jmp 0x51087b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x51087b
push dword [esi]
push dword [ebp - 4]
call fcn.00517822
pop edi
pop esi
leave
ret 0xc

Function at 0x510940
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.005109e9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x510988
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045ee70
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0045ee20
jmp 0x510993
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00517822
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x513d45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x513d9b
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x513d74
call fcn.0050d65d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x513d89
call fcn.0050d65d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x513d9b
call fcn.0050d65d
call fcn.004fd14f
cmp dword [eax + 0x3c], 0
je 0x513db0
push edi
mov ecx, ebx
call fcn.00513475
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00513f82
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x513dd9
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x513de5
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x54b897
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x54b8b1
call fcn.004fd14f
mov esi, dword [eax + 0xc]
push 0x6adae8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x54b907
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x54b907
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x54b8e6
xor esi, esi
jmp 0x54b8fc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0054b910
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x54b909
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x63db01
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x71e678
call fcn.0063e500
push 1
call fcn.0063dcde
pop ecx
test al, al
je 0x63daeb
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0063dcac
mov byte [ebp - 0x24], al
mov eax, dword [0x732ba0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x63daeb
test eax, eax
jne 0x63da0f
mov dword [0x732ba0], ecx
push 0x6a0f78
push 0x6a0f50
call fcn.0065b919
pop ecx
pop ecx
test eax, eax
je 0x63d9f2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x63dadb
push 0x6a0f4c
push 0x6a0bf8
call fcn.0065b8bd
pop ecx
pop ecx
mov dword [0x732ba0], 2
jmp 0x63da14
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0063de50
pop ecx
call fcn.0063e8b8
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x63da45
push esi
call fcn.0063ddbc
pop ecx
test al, al
je 0x63da45
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x6a0bf4]
call esi
call fcn.0063e8be
mov esi, eax
cmp dword [esi], edi
je 0x63da63
push esi
call fcn.0063ddbc
pop ecx
test al, al
je 0x63da63
push dword [esi]
call fcn.0065bbbc
pop ecx
call fcn.0063e9de
movzx eax, ax
push eax
call fcn.0065b877
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0063ea14
test al, al
je 0x63daf2
test bl, bl
jne 0x63da91
call fcn.0065bb97
push edi
push 1
call fcn.0063de6d
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x63dadb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0063e8c4
push esi
call fcn.0065bbf4
push dword [ebp - 0x20]
call fcn.0065bba6
int3
call fcn.0063e811
jmp 0x63d985

Function at 0x65e7d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065e494

Function at 0x65e7dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065e615

Function at 0x667667
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00667327
Function at 0x66dc94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x415ea0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a780
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415f6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x415f6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415f1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415f29
or bh, 8
and edi, 0x8000000
je 0x415f44
mov eax, dword [0x43387c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x415f6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41636b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41638f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4163aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41ac0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41ac4d
call fcn.0041efb1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ac4d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ac44
xor eax, eax
jmp 0x41ac55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ac5b
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f76a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41f798
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f7b6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f6d0
jmp 0x41f7b6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41f7b6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041f6d0
test edi, edi
mov eax, edi
jne 0x41f7a0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401a60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x431320], 0x24e1
mov eax, dword [0x431320]
sub eax, 0x24e1
mov dword [0x431320], eax
mov ecx, 1
test ecx, ecx
je 0x401b0b
mov edx, dword [0x431320]
cmp edx, dword [ebp + 0xc]
jb 0x401a97
jmp 0x401b0b
cmp dword [0x431320], 0
jne 0x401ab5
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401ab5
xor eax, eax
jmp 0x401b0b
mov eax, dword [ebp + 8]
add eax, dword [0x431320]
mov ecx, dword [eax]
add ecx, dword [0x431320]
mov edx, dword [ebp + 8]
add edx, dword [0x431320]
mov dword [edx], ecx
mov dword [ebp - 4], 0x263fa
mov eax, dword [0x431320]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x431320]
push eax
call fcn.004011c0
add esp, 8
mov ecx, dword [0x431320]
add ecx, 4
mov dword [0x431320], ecx
jmp 0x401a7d
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100014b1
push 0
push 0
push 0
push 0x10001440
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10001830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000185c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10001884
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000188a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x100018f2
jg 0x100018a1
test esi, esi
je 0x100018f2
test ecx, ecx
jl 0x100018ed
jg 0x100018ab
test eax, eax
je 0x100018ed
cmp edi, ecx
jg 0x100018bf
jl 0x100018b5
cmp esi, eax
jae 0x100018bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x100018f5
mov ecx, dword [ebp + 8]
jmp 0x100018ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10001919
jg 0x100018ff
test esi, esi
je 0x10001919
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10001919
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc