joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410290
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x457db8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push esi
lea ecx, [esp + 0x18]
call fcn.00423266
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0042299f
mov ecx, dword [esi + 0x54]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x140]
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00423572
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
test byte [esi + 0x64], 4
je 0x410318
add dword [edi], 0xe
push ebx
lea ecx, [esp + 0x18]
call fcn.004229d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004232ba
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x2c
ret 8

Function at 0x413510
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
xor ebx, ebx
cmp esi, ebx
jl 0x4135d1
mov eax, dword [edi + 0x20]
push ebx
push ebx
push 0x1200
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, eax
jge 0x4135d1
xor eax, eax
cmp esi, dword [edi + 0x9c]
jge 0x4135cc
mov ecx, dword [edi + 0x98]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebx
je 0x4135d3
mov ecx, dword [ecx + 4]
cmp ecx, ebx
je 0x4135d3
add ecx, 0x18
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x18]
push eax
push esi
push 0x1207
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub eax, ecx
sub eax, 0xd
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
add eax, ecx
mov dword [esp + 0xc], eax
add eax, 0xd
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00425b22
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415190
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x458d48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x48]
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x415345
mov ecx, ebx
call fcn.0042ea0e
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x1037
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x50]
push ecx
push esi
mov ecx, edi
call fcn.0043018d
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
add eax, 5
mov dword [esp + 0x10], eax
add eax, 0xd
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, edx
sub eax, ecx
sub eax, 0xd
mov dword [esp + 0x1c], edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x14], eax
add eax, 0xd
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
push ebp
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.00427d52
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x48]
cmp dword [edx - 0xc], 0
jne 0x415274
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, 0xd
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx - 1]
mov dword [esp + 0x10], ecx
add ecx, 0xd
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x54]
imul ebp, ebp, 0x64
cmp dword [eax + ebp + 0x58], 0
lea ebp, [eax + ebp + 0x58]
je 0x41529d
mov eax, dword [eax + 4]
mov ecx, dword [ebp]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp]
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00412510
mov ecx, dword [esp + 0x48]
cmp dword [ecx - 0xc], 0
je 0x41531d
push 1
mov ecx, edi
call fcn.00422a3d
mov edx, dword [edi]
mov eax, dword [esp + 0x4c]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
add ecx, 4
cmp dword [ebx + 0x12c], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
mov eax, 0x24
je 0x415305
mov eax, 0x8024
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx - 0xc]
mov esi, dword [edi]
push eax
lea eax, [esp + 0x24]
push eax
push edx
mov edx, dword [esi + 0x68]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415345
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x34
ret 0x14
Function at 0x41a260
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x14
push esi
push edi
push 0x461b1f
push str.Shell_TrayWnd
xor esi, esi
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41a292
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x14]
sub esi, dword [esp + 0xc]
sub esi, 2
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov dword [ebx + 0xbc], eax
call edi
sub eax, esi
pop edi
mov dword [ebx + 0xc0], eax
pop esi
add esp, 0x14
ret
Function at 0x41f7d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x41f7df
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x41f8c7
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x465d88]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x41f7f0
pop ebp
test edi, edi
je 0x41f8ec
jmp 0x41f8d0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x465d88]
add ecx, 1
sub edi, 1
jne 0x41f8d0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x420020
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x420052
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420048
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x420065
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call fcn.00447350
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x420080
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4200b3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4200ad
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4200df
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4200c5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00447350
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4200f6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4200f0
cmp byte [esi + 8], 0
je 0x4200f0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4201e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x420225
cmp byte [esi + 1], 0
je 0x42022d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x420241
cmp byte [esi + 1], 0
je 0x420233
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x42024a
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x4201fe
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x42024a
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x42025e
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00441445
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x420279
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0
jbe 0x42038e
jmp 0x42029c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x4202ad
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x4202c6
mov ebp, 0x404
cmp byte [esi], 0
je 0x4202eb
cmp byte [esi + 1], 0
je 0x42038e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4202ee
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x420316
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420310
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x42033c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x420327
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00447350
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x42038e
lea eax, [ebp - 3]
test eax, eax
jle 0x420380
lea esp, [esp]
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x42036e
cmp byte [eax + ebx + 1], 0x4b
jne 0x42036e
cmp byte [eax + ebx + 2], 5
jne 0x42036e
cmp byte [eax + ebx + 3], 6
je 0x420374
test eax, eax
jg 0x420350
jmp 0x420380
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x42038e
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x420290
push ebx
call fcn.004410df
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4210a0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x4210fd
cmp dword [esi + 4], 0xffffffff
jne 0x4210fd
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4210c1
mov ax, word [0x466380]
mov word [edi], ax
mov eax, dword [esp + 8]
lea edi, [esp + 8]
call fcn.0041ff80
test eax, eax
jne 0x4210ed
mov eax, dword [esp + 8]
pop edi
ret 4
call fcn.004203b0
mov dword [esi], eax
mov eax, dword [0x477990]
pop edi
ret 4
mov eax, 0x1000000
pop edi
ret 4

Function at 0x421580
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4736c0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x42165b
mov al, byte [edi]
test al, al
je 0x42165b
push esi
mov esi, edi
mov ecx, edi
jmp 0x4215c0
cmp al, 0x2f
je 0x4215c8
cmp al, 0x5c
jne 0x4215ca
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x4215c0
cmp esi, edi
je 0x4215f9
sub esi, edi
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00441de3
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.00421580
add esp, 0x14
lea edx, [esp + 0x110]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x421604
mov eax, edi
mov edx, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421614
lea edi, [esp + 0x110]
sub eax, edx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x421630
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x114]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.004404d0
add esp, 0x20c
ret
Function at 0x422119
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4736c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x422159
push 0x45ba18
push 4
push eax
call fcn.004401b6
push eax
call fcn.00407ca0
add esp, 0x10
jmp 0x42216b
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4221d9
push edi
call fcn.00442f81
mov edi, dword [eax]
call fcn.00442f81
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00442f27
add esp, 0x18
mov ebx, eax
call fcn.00442f81
cmp dword [eax], 0
je 0x4221b9
call fcn.00442f81
push dword [eax]
call fcn.00422094
pop ecx
jmp 0x4221c0
call fcn.00442f81
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4221d9
cmp ebx, esi
jae 0x4221d9
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4221db
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004404d0
leave
ret
Function at 0x4240bc
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4240e5
call fcn.0042fc99
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x424108
push eax
push dword [esi + 4]
call fcn.00424047
push esi
push eax
mov ecx, 0x4750f0
call fcn.00423cd8
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x424af8
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x456867
call fcn.00442a5a
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00424aba
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004085a0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x424b5e
push eax
push dword [esi + 8]
call fcn.00424047
push dword [esi + 0xc]
mov ecx, 0x4750f0
push eax
call fcn.00423cd8
mov eax, esi
call fcn.00442b32
ret 0x18

Function at 0x42608b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4260d1
call fcn.0042fc99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4260d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x426114
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4260fd
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 0x4260fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x426111
mov ecx, dword [esi + 0x4c]
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 0x428656
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x456b82
call fcn.00442a8d
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0042fc99
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4286a1
call fcn.0042fc99
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4286b2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4286bf
or eax, 0xffffffff
jmp 0x42881b
mov ecx, esi
call fcn.004281a8
mov dword [ebp - 0x14], eax
call fcn.0042bdab
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42873d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42873d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42873d
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004220e4
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42873d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42873d
mov ecx, ebx
call fcn.0042eb51
test eax, eax
je 0x42873d
push 0
mov ecx, ebx
call fcn.0042eb6c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042d7d5
push dword [ebp - 0x14]
call fcn.0042bd03
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042845e
xor edi, edi
cmp eax, edi
je 0x42879a
test byte [esi + 0x3c], 0x10
je 0x428784
push 4
pop edi
mov ecx, esi
call fcn.0042ea0e
test ax, 0x100
je 0x42877a
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042b8cb
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42879a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042ed3f
or dword [ebp - 4], 0xffffffff
jmp 0x4287c5
cmp dword [ebp - 0x28], edi
je 0x4287d3
push 1
mov ecx, ebx
call fcn.0042eb6c
cmp dword [ebp - 0x2c], edi
je 0x4287e3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4287fc
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4287fc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004281e2
cmp dword [esi + 0x58], edi
je 0x428818
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00442b32
ret
Function at 0x42cda5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42cdde
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004246ac
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042400b
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42e8f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42e935
call fcn.0042fc99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42e935
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42e950
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042e4a9
test ebx, ebx
mov esi, eax
je 0x42e94e
test edi, edi
je 0x42e94e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x431c36
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 0x431c64
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431c82
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00431ba0
jmp 0x431c82
mov eax, dword [esi + 0x14]
test eax, eax
je 0x431c82
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00431ba0
test edi, edi
mov eax, edi
jne 0x431c6c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x476d60]
test ecx, ecx
je 0x431d45
jmp 0x431c35
ret 8

Function at 0x4325a2
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4325ab
xor eax, eax
jmp 0x432614
cmp dword [esp + 8], 0
jne 0x4325b7
call fcn.00425b22
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004458c5
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4325f2
push dword [esi + 0x10]
call fcn.004455cb
test eax, eax
pop ecx
jne 0x4325f2
mov esi, dword [esi + 0xc]
call fcn.00442f94
push esi
push dword [eax]
push 1
call fcn.004331c0
push dword [esi + 0x10]
call fcn.004455fa
test eax, eax
pop ecx
je 0x432611
push dword [esi + 0x10]
call fcn.0044551f
push eax
call fcn.00407ca0
pop ecx
pop ecx
jmp 0x4325e0
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x43261d
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x432627
call fcn.00425b22
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00445a3f
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x432654
mov esi, dword [esi + 0xc]
call fcn.00442f94
push esi
push dword [eax]
push 1
call fcn.004331c0
pop esi
ret 8

Function at 0x4404d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4736c0]
jne 0x4404da
repz ret
jmp fcn.00449a98