joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019f0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401a21
push eax
call fcn.00401490
add esp, 4
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x4020a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov al, 0x45
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x28], al
mov al, 0x6c
xor ebx, ebx
push str.HeapFree
push str.kernel32.dll
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x4e
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x1c], eax
mov al, 0x65
mov cl, 0x73
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x35], al
mov byte [ebp - 0x31], al
mov byte [ebp - 0x34], cl
mov byte [ebp - 0x33], cl
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov byte [ebp - 0x3c], 0x47
mov byte [ebp - 0x3a], 0x74
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x32], 0x48
mov byte [ebp - 0x30], 0x61
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], bl
call esi
push eax
call edi
mov dword [ebp - 0x18], eax
nop
nop
nop
nop
nop
lea edx, [ebp - 0x14]
push 0x404520
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x63
call sub.MSVCRT.dll__CxxThrowException
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [ebp - 0x18]
push eax
call dword [ebp - 0x1c]
mov eax, 0x402192
ret
Function at 0x402700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.VirtualFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
nop
nop
nop
nop
nop
push str.VirtualProtect
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [eax]
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
push 0x404520
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x40
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [edi]
cmp word [ecx + 6], bx
jbe 0x402853
mov edx, dword [ebp - 0x18]
lea esi, [edx + 0x24]
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
shr eax, 0x1f
nop
nop
nop
nop
test byte [esi + 3], 2
je 0x4027d5
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40283f
nop
nop
nop
nop
nop
lea edx, [edx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [eax*4 + 0x44edc4]
mov eax, dword [esi]
test eax, 0x4000000
je 0x4027f3
or dh, 2
nop
nop
nop
nop
nop
nop
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x402818
mov ecx, dword [esi]
test cl, 0x40
je 0x40280e
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
jmp 0x402818
test cl, 0x80
je 0x402818
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
nop
nop
nop
nop
nop
nop
test eax, eax
jbe 0x40283f
mov eax, dword [esi - 0x1c]
lea ecx, [ebp + 8]
push ecx
push edx
mov edx, dword [esi - 0x14]
push edx
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x40283f
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [edi]
xor edx, edx
inc ebx
add esi, 0x28
mov dx, word [ecx + 6]
cmp ebx, edx
jl 0x4027a1
mov eax, 0x402859
ret
Function at 0x402d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4036d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.HeapFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x20], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov al, 0x45
mov cl, 0x72
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x38], al
mov al, 0x6c
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], al
mov byte [ebp - 0x26], al
mov al, 0x65
mov byte [ebp - 0x23], al
mov byte [ebp - 0x22], al
mov byte [ebp - 0x24], cl
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
xor ebx, ebx
push eax
push ecx
mov byte [ebp - 0x3c], 0x4b
mov byte [ebp - 0x3a], 0x52
mov byte [ebp - 0x39], 0x4e
mov byte [ebp - 0x37], 0x4c
mov byte [ebp - 0x36], 0x33
mov byte [ebp - 0x35], 0x32
mov byte [ebp - 0x34], 0x2e
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2c], 0x56
mov byte [ebp - 0x2b], 0x69
mov byte [ebp - 0x29], 0x74
mov byte [ebp - 0x28], 0x75
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x25], 0x46
mov byte [ebp - 0x21], bl
call esi
push eax
call edi
push str.GetProcessHeap
push str.KERNEL32.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x14]
push 0x404520
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x44
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 8]
test esi, esi
je 0x402eb1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402e4c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [eax + 0x28]
add ecx, ebx
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [esi + 4]
push 0
push 0
push edx
call ecx
mov dword [esi + 0x10], 0
nop
nop
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x402e8b
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x402e7b
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402e73
push eax
call ebx
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x402e65
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [esi + 8]
push ecx
call fcn.004020a0
add esp, 4
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x402ea1
push 0x8000
push 0
push eax
call dword [ebp - 0x18]
nop
nop
nop
nop
nop
nop
push esi
push 0
call dword [ebp - 0x1c]
push eax
call dword [ebp - 0x20]
mov eax, 0x402eb7
ret

Function at 0xddce6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xddce76
pushal
call 0xddce7c
pop ebp
sub ebp, 0x10
sub ebp, 0x9dce6c
jmp 0xddce92
mov eax, 0x9dce6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0xe79e0445
xor byte [eax], dl
inc eax
dec ecx
jne 0xddcea9
jmp 0xddcebc
into
mov dh, cl
int3
Function at 0xd03610
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], eax
pushfd
lodsb al, byte [esi]
stc
pushal
call fcn.00d04cc3
out dx, al
dec esi
nop
add byte [eax], al
add byte [eax], al
add byte [edi - 0x77ff6ef9], ah
aas
nop
add byte [eax], al
add byte [eax], al
add bl, dl
xor esp, dword [ecx - 0x5efca200]
add byte [esi], cl
fcmovnu st(0), st(2)
add byte [esi + 0x49009107], dl
cmp byte [ecx - 0x6fcc8d00], ah
add ah, ah
fiadd dword [eax]
sar al, 1
nop
add byte [ebx + 1], ah
xchg ecx, eax
add bh, dl
invalid

Function at 0xe103be
Capabilities:
Check for software breakpoints

Disassembly:
lea esp, [esp + 0xc]
call fcn.00e0eeb6
push esp
mov esp, esi
pushfd
pushfd
pushfd
lea esp, [esp + 0xc]
jmp 0xd046b5
mov byte [ecx], al
cmp dh, 0xcc
clc
add ecx, 1
bt ax, 3
bt ax, cx
test ah, ah
mov word [esp], 0xd115
lea esp, [esp + 0x34]
jne 0xe10a90
pushfd
mov dword [esp], edi
pushfd
mov word [esp], 0x99ca
pushfd
push dword [esp]
mov dword [esp + 8], ebx
push dword [esp + 4]
jmp 0xd0f2e8
ror al, 3
pushal
test ah, cl
push 0xfa1a436b
jmp 0xe0faf2
Function at 0x505f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb1000]
push edi
jmp 0x505f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x505f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x505f60
mov eax, 1
add ebx, ebx
jne 0x505f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x505f94
jne 0x505fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x505fb3
dec eax
add ebx, ebx
jne 0x505fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x505f78
add ebx, ebx
jne 0x505faf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x506005
xor ecx, ecx
sub eax, 3
jb 0x505fcb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50603a
sar eax, 1
mov ebp, eax
jmp 0x505fd6
add ebx, ebx
jne 0x505fd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x505fa4
inc ecx
add ebx, ebx
jne 0x505fe4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x505fa4
add ebx, ebx
jne 0x505ff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x505fe6
jne 0x506002
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x505fe6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x506024
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x506016
jmp 0x505f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x506024
add edi, ecx
jmp 0x505f66
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x506042
cmp byte [edi], 0x11
jne 0x506042
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 0x506047
lea edi, [esi + 0xfe000]
mov eax, dword [edi]
or eax, eax
je 0x5060bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1333ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x133568]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x506074
mov ecx, edi
jns 0x5060a3
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 + 0x13356c]
or eax, eax
je 0x5060b9
mov dword [ebx], eax
add ebx, 4
jmp 0x506091
call dword [esi + 0x13357c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5060f0
cmp al, 0xef
ja 0x5060e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5060c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5060d2
mov ebp, dword [esi + 0x133570]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x506124
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40161b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401652
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40164e
jmp 0x401640
cmp esi, eax
jae 0x401652
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401640
cmp esi, eax
jb 0x401659
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40596e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x572d10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4059b3
push 0x529008
push 4
push eax
call fcn.005041d8
push eax
call fcn.004016b0
add esp, 0x10
jmp 0x4059c9
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x405a49
push edi
call fcn.005048c3
mov edi, dword [eax]
call fcn.005048c3
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00504860
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005048c3
cmp dword [eax], 0
je 0x405a1d
call fcn.005048c3
push dword [eax]
call fcn.00404ccf
pop ecx
jmp 0x405a24
call fcn.005048c3
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x405a49
cmp dword [ebp - 0x234], esi
jae 0x405a49
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x405a4b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005037d2
leave
ret
Function at 0x405fcf
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x572d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00405f30
pop ecx
cmp eax, esi
je 0x4060b9
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4060b9
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00505180
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4060b9
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4060b9
cmp esi, 0x14
jge 0x4060b9
push 0x10
push 0
push edi
call fcn.0050515b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4060a8
call fcn.005048c3
cmp dword [eax], 0x22
je 0x4060a8
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005041bd
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x40607e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5742ec], 0
jne 0x406144
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40616d

Function at 0x40d9f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40da3b
call fcn.00407347
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40da3b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40da57
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d4f4
mov esi, eax
test edi, edi
je 0x40da55
test ebx, ebx
je 0x40da55
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40dea9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40def1
call fcn.00407347
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40def1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40df34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40df1d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40df1d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40df31
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40f1aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00407347
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f1e3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040ede7
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 0x40f241
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40f265
cmp dword [edi + 0x74], 0
jne 0x40f265
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00407347
mov esi, dword [eax + 0xc]
push 5
push ebx
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 ebx, eax
push ebx
mov ecx, edi
call fcn.0040f202
push ebx
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 0x412519
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004121bd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x412563
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004054cd
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403110
jmp 0x41256e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00417d88
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x412574
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004116bd
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4125b1
call fcn.004121bd
mov dword [esi + 0xc], 1
jmp 0x4125b6
call fcn.004121bd
cmp dword [esi], 0
je 0x4125ff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4125d7
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004054cd
jmp 0x4125e9
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401ac0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403110
jmp 0x412623
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x412623
push dword [esi]
push dword [ebp + 8]
call fcn.00417d88
pop esi
pop ebp
ret 0xc

Function at 0x4161d4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x572d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x416209
xor eax, eax
jmp 0x41625c
lea eax, [ebp - 0x210]
push eax
call fcn.005041bd
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41623a
push 0x552a10
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005051fa
add esp, 0xc
test eax, eax
jne 0x416205
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005051fa
add esp, 0xc
test eax, eax
jne 0x416205
lea eax, [ebp - 0x210]
push eax
call fcn.00405f30
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005037d2
leave
ret

Function at 0x44e2d4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d9003
call fcn.00406d78
cmp dword [eax + 0x14], 0
jne 0x44e2f1
mov ecx, esi
pop esi
jmp fcn.0044ddd9
pop esi
ret
Function at 0x451927
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0047dee1
call fcn.00406d78
cmp dword [eax + 0x14], 0
jne 0x451944
mov ecx, esi
pop esi
jmp fcn.004512fa
pop esi
ret

Function at 0x48fb31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48fb4b
call fcn.00407347
mov esi, dword [eax + 0xc]
push dword [0x578154]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48fb69
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48fb61
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48fb96
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48fb63
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048fa5f
mov esi, eax
jmp 0x48fb88

Function at 0x4e44db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e44f3
mov edi, dword [esi + 0xc]
jmp 0x4e4533
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e450c
call fcn.00412973
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e4521
call fcn.00412973
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e4533
call fcn.00412973
call fcn.00407347
cmp dword [eax + 0x3c], 0
je 0x4e4548
push edi
mov ecx, ebx
call fcn.004e3394
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e43f5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e4566
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e4572
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5037d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x572d10]
jne 0x5037dc
repz ret
jmp fcn.0050a354