joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407280
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x108
mov eax, dword [0x45d594]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push 0xff
lea ecx, [esp + 0xd]
push 0
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0
call fcn.00432d30
add esp, 0xc
test ebx, ebx
jle 0x407305
push esi
mov esi, dword [esp + 0x114]
push edi
sub esi, ebp
lea edi, [esp + 0x10]
mov ecx, ebp
sub edi, ebp
mov ebp, ebx
lea esp, [esp]
xor edx, edx
cmp byte [esi + ecx], 0x31
sete dl
xor eax, eax
cmp byte [ecx], 0x31
sete al
xor eax, edx
dec eax
neg eax
sbb al, al
add al, 0x31
mov byte [edi + ecx], al
inc ecx
sub ebp, 1
jne 0x4072e0
pop edi
pop esi
mov eax, dword [esp + 4]
push ebx
lea edx, [esp + 0xc]
push edx
push eax
call fcn.00436010
mov ecx, dword [esp + 0x114]
add esp, 0xc
pop ebp
xor ecx, esp
call fcn.0042f428
add esp, 0x108
ret 0xc
Function at 0x407330
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x447401
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x45d594]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d594]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
xor ebx, ebx
push 0x2f
mov dword [esp + 0x90], ebx
lea eax, [esp + 0x51]
mov esi, ecx
push ebx
mov dword [esp + 0x30], ebx
push eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x58], bl
call fcn.00432d30
add esp, 0xc
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x44f2ab
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004047c0
mov eax, dword [esp + 0x94]
lea edi, [esp + 0x4c]
mov dword [esp + 0x8c], ebx
fld qword [0x4533a0]
fld1
mov ecx, edi
sub eax, ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
jmp 0x4073ee
fld1
mov eax, dword [esp + 0x20]
fld qword [0x4533a0]
fxch st(1)
mov edx, dword [eax + edi]
mov ax, word [eax + edi + 4]
mov dword [edi], edx
mov word [edi + 4], ax
xor eax, eax
cmp byte [edi], 0x31
mov dword [esp + 0x18], ebx
sete al
xor ecx, ecx
cmp byte [edi + 5], 0x31
lea ebp, [edi + 1]
sete cl
mov esi, 3
lea ecx, [ecx + eax*2]
mov dword [esp + 0x24], ecx
xor edx, edx
fld st(1)
cmp byte [ebp], 0x31
mov eax, esi
sete dl
cmp esi, ebx
mov dword [esp + 0x2c], edx
jge 0x407437
neg eax
fld st(1)
test al, 1
je 0x40743f
fmul st(1)
shr eax, 1
je 0x407449
fld st(1)
fmulp st(2)
jmp 0x407439
cmp esi, ebx
fstp st(1)
jge 0x407451
fdivr st(1)
fimul dword [esp + 0x2c]
fiadd dword [esp + 0x18]
call fcn.00434ea0
dec esi
inc ebp
cmp esi, 0xffffffff
mov dword [esp + 0x18], eax
jg 0x407420
mov ecx, dword [esp + 0x24]
fstp st(0)
mov ebp, dword [esp + 0x14]
fstp st(0)
lea edx, [ecx + ebp]
shl edx, 4
add edx, eax
mov eax, dword [edx*4 + 0x44ffe8]
lea esi, [esp + 0x30]
call fcn.00406670
push ebx
mov dword [esp + 0x90], 1
mov esi, dword [esp + 0x20]
push eax
or eax, 0xffffffff
call fcn.00407920
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x48], 0x10
jb 0x4074c1
mov eax, dword [esp + 0x34]
push eax
call fcn.00411b75
add esp, 4
add ebp, 4
add edi, 6
cmp ebp, 0x20
mov dword [esp + 0x14], ebp
jl 0x4073e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0042f428
add esp, 0x7c
ret 4

Function at 0x407bc0
Capabilities:
Enumerate process modules

Disassembly:
push edi
lea edi, [esi + 4]
mov dword [esi + 8], 0xffffffff
mov dword [edi], 0
mov eax, dword [esi]
push eax
call fcn.00411b75
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411b80
add esp, 8
push edi
push 0x1000
push eax
mov dword [esi], eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x407c13
shr dword [edi], 2
mov dword [esi + 8], 1
cmp dword [edi], 0x400
jae 0x407bd1
mov eax, dword [esi]
test eax, eax
je 0x407c31
mov ecx, dword [esi + 8]
cmp ecx, dword [edi]
jae 0x407c31
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [esi + 8], ecx
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x407c60
Capabilities:
Enumerate process modules

Disassembly:
cmp dword [esi], 0
push edi
lea edi, [esi + 8]
mov dword [edi], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], 0
je 0x407ce7
lea ecx, [ecx]
mov eax, dword [esi + 4]
push eax
call fcn.00411b75
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411b80
add esp, 8
push edi
push 0x1000
push eax
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x407cc7
shr dword [edi], 2
mov dword [esi + 0xc], 0
cmp dword [edi], 0x400
jae 0x407c80
cmp dword [esi], 0
je 0x407ce7
mov ecx, dword [esi + 0xc]
cmp ecx, dword [edi]
jae 0x407ce7
mov edx, dword [esi + 4]
mov eax, dword [edx + ecx*4]
inc ecx
mov dword [esi + 0xc], ecx
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x407f50
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor ecx, ecx
push edi
xor edi, edi
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x18], vtable.CWindowIterator.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
neg ecx
or ecx, eax
push ecx
call fcn.00411b80
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push ecx
push 0x407b10
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x20], vtable.CMainWindowIterator.0
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
cmp eax, edi
je 0x40801f
cmp dword [esp + 0x24], edi
jbe 0x40801f
mov esi, dword [eax]
mov dword [esp + 0x28], 1
cmp esi, edi
je 0x40801f
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
nop
lea edx, [esp + 0x14]
push edx
push 0x64
push 0xa
push edi
push edi
push 0x11
push esi
mov dword [esp + 0x30], edi
call ebx
cmp dword [esp + 0x14], edi
je 0x408079
push edi
push edi
push 0x10
push esi
call ebp
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x40801f
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x24]
jae 0x40801f
mov esi, dword [ecx + eax*4]
inc eax
mov dword [esp + 0x28], eax
cmp esi, edi
jne 0x407fe0
mov ecx, dword [esp + 0x34]
push ecx
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x408055
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40804e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x1c], vtable.CWindowIterator.0
call fcn.00411b75
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x1c], vtable.CWindowIterator.0
call fcn.00411b75
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
Function at 0x408290
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create raw socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x1c
mov eax, dword [0x45d594]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push edi
cmp eax, 0xffffffff
je 0x4082bb
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
lea edi, [esi + 0x10]
push edi
lea eax, [esi + 0xc]
push eax
lea ebx, [esi + 8]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 3
call fcn.0041efce
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x408304
xor al, al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042f428
add esp, 0x1c
ret 4
movzx eax, word [edi]
mov edx, 2
push eax
mov word [esp + 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [ebx]
push ebx
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x408331
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
push 0x10
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x408358
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4082ee
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042f428
add esp, 0x1c
ret 4
Function at 0x408950
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.CHttpDownload.0
test eax, eax
je 0x408990
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40897f
mov eax, dword [esi + 0x10]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xd30]
mov dword [esi + 0xd2c], 0x4509fc
test eax, eax
je 0x4089ad
push eax
call fcn.00411b75
add esp, 4
lea ecx, [esi + 0x18]
pop esi
jmp fcn.00408230

Function at 0x4089c0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
cmp byte [esi + 4], 1
jne 0x4089d1
xor al, al
add esp, 0xc
ret 4
mov eax, dword [esp + 0x10]
push edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x14], eax
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
test edi, edi
jne 0x408a10
push 0x10
push 0x44f6ac
push 0x4509b0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
add esp, 0xc
ret 4
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0x408d60
push 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
call fcn.004308a7
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
jne 0x408a60
push 0x10
push 0x44f6ac
push 0x4509c0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
add esp, 0xc
ret 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 4], 1
mov al, 1
pop edi
add esp, 0xc
ret 4
Function at 0x408b50
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x447a1b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4c
mov eax, dword [0x45d594]
xor eax, esp
mov dword [esp + 0xd48], eax
push ebp
push esi
push edi
mov eax, dword [0x45d594]
xor eax, esp
push eax
lea eax, [esp + 0xd5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd6c]
cmp ebx, dword [ebp + 0xd34]
jge 0x408cb5
lea eax, [ebp + 0xd2c]
mov dword [esp + 0x14], eax
test ebx, ebx
jl 0x408d4d
cmp ebx, dword [eax + 8]
jge 0x408d4d
mov edi, ebx
imul edi, edi, 0x418
add edi, dword [eax + 4]
cmp dword [edi + 0x410], 1
je 0x408d46
cmp dword [ebp + 0xc], 0
jbe 0x408bfe
mov dword [edi + 0x410], 2
cmp dword [ebp + 0x14], 0
je 0x408cb5
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
push 0x4509d0
call edx
jmp 0x408cb5
cmp dword [ebp + 0x14], 0
je 0x408c13
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
push 0x4509d0
call edx
cmp dword [edi + 4], 0
jne 0x408c8d
lea esi, [esp + 0x24]
call fcn.00408160
lea eax, [edi + 0x20c]
push eax
mov dword [esp + 0xd68], 0
call fcn.00408290
push 0
push 0
mov ecx, esi
call fcn.00408370
lea ecx, [esp + 0xd38]
push ecx
mov edx, esi
push edx
call fcn.004087a0
lea eax, [esp + 0xd38]
push eax
call fcn.0042fa69
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
or esi, 0xffffffff
add esp, 4
cmp eax, esi
je 0x408c7d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0xd64], esi
call fcn.00408230
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
test esi, esi
jne 0x408ce0
push 0x10
push 0x44f6ac
push 0x4509b0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0xd5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xd48]
xor ecx, esp
call fcn.0042f428
add esp, 0xd58
ret 4
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0x408dd0
push 0
push 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
call fcn.004308a7
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x408d25
push 0x10
push 0x44f6ac
push 0x4509c0
jmp 0x408cad
mov ecx, dword [esp + 0x14]
mov eax, ebx
call fcn.00409310
push 0xffffffffffffffff
push esi
mov dword [eax + 0x414], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
jmp 0x408cb7
call fcn.00412327
int3
Function at 0x40bd30
Capabilities:
Check os version
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x447963
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x45d594]
xor eax, esp
mov dword [esp + 0x78], eax
push ebp
push esi
push edi
mov eax, dword [0x45d594]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x64
lea ecx, [esp + 0x28]
push ecx
push 0
mov ebp, eax
push ebp
push 0
push 0x1200
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp eax, 1
jae 0x40bd9e
mov byte [esp + 0x20], 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.00403af0
mov dword [esp + 0x94], 0
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 0xc]
xor eax, eax
test edx, edx
jle 0x40be95
test eax, eax
jl 0x40bdeb
cmp eax, edx
jg 0x40bdeb
mov cl, byte [eax + esi]
cmp cl, 0xd
je 0x40bdf5
cmp eax, edx
jg 0x40bdeb
cmp cl, 0xa
je 0x40bdf5
inc eax
cmp eax, edx
jl 0x40bdc8
jmp 0x40be95
push 0x80070057
call fcn.00403990
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00409260
mov byte [esp + 0x94], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40be69
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40be5b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40be5b
push eax
call fcn.004034b0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40be4e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
jmp 0x40be69
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004039e0
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push ebp
push 0x44
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, dword [esp + 0x30]
mov dword [eax], esi
mov eax, esp
add ecx, 0x20
mov dword [esp + 0x28], esp
push ecx
mov dword [eax], str.file_error
call fcn.0040a2e0
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40beeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0042f428
add esp, 0x88
ret 4
Function at 0x40c260
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.00431a5e
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x40c3c9
mov edx, dword [esi + 0x24]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov eax, esp
mov dword [eax], edx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.0040a2e0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x40c369
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x40c2ed
cmp byte [edi], dl
jmp 0x40c2f1
cmp word [edi], 0
sete dl
test edx, edx
je 0x40c31b
test eax, eax
je 0x40c314
cmp edi, eax
je 0x40c314
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00430c90
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x40c2e0
test eax, eax
je 0x40c33e
cmp edi, eax
je 0x40c33e
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00430c90
add esp, 0xc
test ebp, ebp
je 0x40c369
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.0040a2e0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x40c3bb
test byte [esi + 4], 0x80
je 0x40c3bb
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x40c396
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x40c380
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.0040a2e0
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.0040bd30
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x40cc40
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x40cc5c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x40ccd6
test edx, edx
jne 0x40cc95
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411b80
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.00436010
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40ccb2
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x40cca0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.0040a2e0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.00431bdd
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x40ccfb
push edi
call fcn.00411b75
add esp, 4
test bl, bl
je 0x40cd33
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.0040a2e0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.0040bd30
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x419167
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 0x4191ae
call fcn.0041dd33
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4191ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4191ca
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00418ce1
mov esi, eax
test edi, edi
je 0x4191c8
test ebx, ebx
je 0x4191c8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x419971
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4463e7
call fcn.00432771
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x419996
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4199dc
lea ecx, [ebp - 0x10]
call fcn.00403480
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411c26
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403820
mov eax, esi
call fcn.00432849
ret 8

Function at 0x41bca3
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 0x41bceb
call fcn.0041dd33
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bceb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41bd2e
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 0x41bd17
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 0x41bd17
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41bd2b
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