joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46012d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460165
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045e1e4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e1bc
jmp 0x460171
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461822
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 0x461864
call fcn.0046759d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461864
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46185b
xor eax, eax
jmp 0x46186c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461872
pop edi
pop esi
pop ebx
ret 4

Function at 0x467acd
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 0x467afb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467b19
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467a33
jmp 0x467b19
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467b19
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467a33
test edi, edi
mov eax, edi
jne 0x467b03
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4019c0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x43f1ec]
push esi
mov dword [esp + 0x108], eax
push edi
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x114]
mov esi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
push ecx
call esi
lea edx, [esp + 8]
push edx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
call fcn.004130e9
add esp, 0x108
ret 4

Function at 0x401a20
Capabilities:
Create directory
Set current directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x43f1ec]
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
lea edx, [esp + 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401a42
lea eax, [esp + 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a56
sub eax, edx
cmp byte [esp + eax + 0x107], 0x5c
push ebx
push esi
push edi
je 0x401a85
lea edi, [esp + 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401a74
mov ax, word [0x431668]
mov word [edi], ax
lea esi, [esp + 0x114]
mov eax, esi
xor ebx, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a93
sub eax, edx
mov dword [esp + 0xc], eax
je 0x401b67
push ebp
push 0x5c
push esi
call fcn.00413110
add esp, 8
test ebx, ebx
mov ebp, eax
mov byte [ebp], 0
je 0x401b35
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ac3
sub eax, edx
cmp byte [esp + eax + 0x13], 0x5c
je 0x401aea
lea edi, [esp + 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ad8
mov cx, word [0x431668]
mov word [edi], cx
mov eax, esi
mov edx, esi
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401af0
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401b00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x14]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401b4a
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x401b4a
lea edx, [esp + 0x14]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b40
lea esi, [ebp + 1]
mov eax, esi
inc ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b53
sub eax, edx
mov dword [esp + 0x10], eax
jne 0x401aa7
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
call fcn.004130e9
add esp, 0x210
ret 4
Function at 0x402810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x402829
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x40283d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40285e
cmp esi, eax
jae 0x402837
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402850
cmp esi, eax
jae 0x402837
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401de0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401200
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402ef2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40ab80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40abd3
call fcn.0042bd98
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, ebx
je 0x40abd3
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40abc9
xor eax, eax
jmp 0x40acec
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40ac03
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40ac03
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40ace9
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40ac30
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00409d19
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40ace9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40ac79
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40ac79
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40ac73
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00409d19
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40acd9
and dword [ebp + 0xc], 0
jmp 0x40acd9
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40acd9
push 0xc
call fcn.00421157
mov esi, eax
test esi, esi
pop ecx
je 0x40acbb
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.user32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40acbd
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40acd4
push dword [ebp - 8]
call fcn.00420c1c
jmp 0x40acd9
call fcn.00420bf3
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40ac3e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4144c3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00413f00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x41455e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x442178]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41455e
cmp eax, 1
je 0x41457f
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x41455e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41452b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41455a
xor eax, eax
inc eax
jmp 0x41459e
cmp edi, eax
jae 0x414562
xor eax, eax
jmp 0x41459e
cmp eax, esi
jae 0x414569
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x442178]
jmp 0x414582
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414716
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x435308
call fcn.00414f40
mov edi, 0x94
mov eax, edi
call fcn.00413f00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x442178], ecx
mov eax, dword [esi + 4]
mov dword [0x442184], eax
mov edx, dword [esi + 8]
mov dword [0x442188], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44217c], esi
cmp ecx, 2
je 0x414776
or esi, 0x8000
mov dword [0x44217c], esi
shl eax, 8
add eax, edx
mov dword [0x442180], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4147b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4147b1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4147c9
cmp eax, 0x20b
je 0x4147b6
mov dword [ebp - 0x1c], esi
jmp 0x4147dd
cmp dword [ecx + 0x84], 0xe
jbe 0x4147b1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4147d7
cmp dword [ecx + 0x74], 0xe
jbe 0x4147b1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00419d02
pop ecx
test eax, eax
jne 0x4147f1
push 0x1c
call fcn.004146f2
pop ecx
call fcn.00417666
test eax, eax
jne 0x414802
push 0x10
call fcn.004146f2
pop ecx
call fcn.0041b420
mov dword [ebp - 4], esi
call fcn.0041b222
test eax, eax
jge 0x41481b
push 0x1b
call fcn.004146cd
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x443a50], eax
call fcn.0041b100
mov dword [0x442168], eax
call fcn.0041b05e
test eax, eax
jge 0x414841
push 8
call fcn.004146cd
pop ecx
call fcn.0041ae2b
test eax, eax
jge 0x414852
push 9
call fcn.004146cd
pop ecx
push 1
call fcn.004150ec
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x414868
push eax
call fcn.004146cd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.0041adce
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x414889
movzx eax, word [ebp - 0x40]
jmp 0x41488c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004202f6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4148aa
push edi
call fcn.00415219
call fcn.0041523b
jmp 0x4148dc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00414f7b
ret
Function at 0x415156
Capabilities:
Terminate process

Disassembly:
push 8
push 0x435360
call fcn.00414f40
push 8
call fcn.004190b4
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4421b8], esi
jne 0x41518a
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x4421b4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4421b0], al
cmp dword [ebp + 0xc], edi
jne 0x4151d4
cmp dword [0x443a48], edi
je 0x4151c4
mov eax, dword [0x443a44]
sub eax, 4
mov dword [0x443a44], eax
cmp eax, dword [0x443a48]
jb 0x4151c4
mov eax, dword [eax]
cmp eax, edi
je 0x4151a5
call eax
jmp 0x4151a5
push 0x43e098
mov eax, 0x43e090
call fcn.004150d4
pop ecx
push 0x43e0a4
mov eax, 0x43e09c
call fcn.004150d4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x415205
cmp dword [ebp + 0x10], edi
jne 0x415213
mov dword [0x4421b8], esi
push dword [ebp + 8]
call fcn.00415092
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x415212
push 8
call fcn.00418fff
pop ecx
ret
call fcn.00414f7b
ret

Function at 0x41534a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x415367
call fcn.00415cda
mov dword [eax], 0x16
xor eax, eax
jmp 0x4153d1
push esi
push 0x8c
push 1
call fcn.00417148
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4153bc
push esi
call fcn.0041746c
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41539a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4152b5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x4153d0
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00414452
test ebx, ebx
pop ecx
je 0x4153ce
push ebx
call fcn.00415cec
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41a891
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41a8bf
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41a8c6
cmp ebx, dword [eax + 4]
jae 0x41a8c6
xor eax, eax
jmp 0x41aab6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41a8d7
xor eax, eax
inc eax
jmp 0x41aab5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41a8ed
cmp ecx, edx
jae 0x41aa32
cmp dword [eax + 4], 0
je 0x41a8f6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41a8de
cmp dword [ebp + 8], 0
je 0x41a918
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41aa32
cmp eax, esi
jae 0x41aa32
mov eax, dword [0x442438]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41a93d
cmp dword [esi*4 + 0x442440], edi
je 0x41aa36
inc esi
cmp esi, eax
jl 0x41a92b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x41aab2
cmp dword [ebp - 8], 0x1000000
jne 0x41aab2
test byte [ebp - 0xc], 0xcc
je 0x41a9bb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41aab2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41aab2
cmp word [eax + 0x18], 0x10b
jne 0x41aab2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41aab2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41a9bb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41a9bb
test byte [ecx + 0x27], 0x80
jne 0x41aa32
push 1
push 0x442480
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x41a8cf
mov ecx, dword [0x442438]
test ecx, ecx
mov edx, ecx
jle 0x41a9ef
lea eax, [ecx*4 + 0x44243c]
cmp dword [eax], edi
je 0x41a9ef
dec edx
sub eax, 4
test edx, edx
jg 0x41a9e3
test edx, edx
jne 0x41aa20
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41a9fc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41aa14
lea eax, [edx*4 + 0x442440]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41aa02
cmp ecx, 0x10
jge 0x41aa20
inc ecx
mov dword [0x442438], ecx
push 0
push 0x442480
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x41a8cf
xor eax, eax
jmp 0x41aab5
test esi, esi
jle 0x41a8cf
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x442480
call ebx
test eax, eax
jne 0x41a8cf
cmp dword [esi*4 + 0x442440], edi
je 0x41aa8c
mov eax, dword [0x442438]
lea esi, [eax - 1]
test esi, esi
jl 0x41aa7a
cmp dword [esi*4 + 0x442440], edi
je 0x41aa76
dec esi
jns 0x41aa6a
test esi, esi
jge 0x41aa8a
cmp eax, 0x10
jge 0x41aa85
inc eax
mov dword [0x442438], eax
lea esi, [eax - 1]
jmp 0x41aa8c
je 0x41aaa4
xor ecx, ecx
test esi, esi
jl 0x41aaa4
lea eax, [ecx*4 + 0x442440]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41aa92
push 0
push 0x442480
call ebx
jmp 0x41a8cf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41aaba
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43f1ec]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43fad8]
je 0x41aaef
inc eax
cmp eax, 0x13
jb 0x41aae0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43fad8]
jne 0x41ac15
mov eax, dword [0x442170]
cmp eax, 1
je 0x41abed
cmp eax, edx
jne 0x41ab1f
cmp dword [0x43f224], 1
je 0x41abed
cmp ecx, 0xfc
je 0x41ac15
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ab55
lea eax, [ebp - 0x80]
push 0x4354e8
push eax
call fcn.0041c2b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00414c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ab89
mov eax, edi
push eax
call fcn.00414c30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4354e4
push edi
call fcn.00413660
add esp, 0x10
push edi
call fcn.00414c30
push dword [esi + 0x43fadc]
mov ebx, eax
call fcn.00414c30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413f00
mov ebx, esp
push 0x435da8
push ebx
call fcn.0041c2b0
push edi
push ebx
call fcn.0041c2c0
push 0x4354e0
push ebx
call fcn.0041c2c0
push dword [esi + 0x43fadc]
push ebx
call fcn.0041c2c0
push 0x12010
push 0x4354ac
push ebx
call fcn.0041d870
add esp, 0x2c
jmp 0x41ac15
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43fadc]
push dword [esi]
call fcn.00414c30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004130e9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41b222
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00414440
test eax, eax
pop ecx
jne 0x41b23e
or eax, 0xffffffff
jmp 0x41b41b
mov dword [0x4426c0], eax
mov dword [0x4426b8], 0x20
lea ecx, [eax + 0x480]
jmp 0x41b273
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x4426c0]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x41b255
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x41b37a
mov eax, dword [esp + 0x48]
test eax, eax
je 0x41b37a
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x41b2b4
mov edi, eax
cmp dword [0x4426b8], edi
jge 0x41b30a
mov esi, 0x4426c4
push ebx
call fcn.00414440
test eax, eax
pop ecx
je 0x41b304
add dword [0x4426b8], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x41b2f3
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x41b2dd
add esi, 4
cmp dword [0x4426b8], edi
jl 0x41b2c1
jmp 0x41b30a
mov edi, dword [0x4426b8]
xor ebx, ebx
test edi, edi
jle 0x41b37a
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41b36f
mov cl, byte [ebp]
test cl, 1
je 0x41b36f
test cl, 8
jne 0x41b333
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x41b36f
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x4426c0]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0041c6c5
test eax, eax
pop ecx
pop ecx
je 0x41b39a
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x41b310
xor ebx, ebx
mov ecx, dword [0x4426c0]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x41b3fc
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x41b39f
push 0xfffffffffffffff6
pop eax
jmp 0x41b3a9
or eax, 0xffffffff
jmp 0x41b418
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b3f6
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x41b3f6
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x41b3d4
or byte [esi + 4], 0x40
jmp 0x41b3dd
cmp eax, 3
jne 0x41b3dd
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0041c6c5
test eax, eax
pop ecx
pop ecx
je 0x41b39a
inc dword [esi + 8]
jmp 0x41b400
or byte [esi + 4], 0x40
jmp 0x41b400
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x41b37c
push dword [0x4426b8]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret