joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aa50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
xor al, al
mov edx, ecx
dec ecx
test edx, edx
je 0x41aa6e
lea edx, [ecx + 1]
mov ecx, dword [esp + 4]
push ebx
mov bl, byte [ecx]
xor al, bl
inc ecx
dec edx
jne 0x41aa65
pop ebx
ret 8

Function at 0x41adb4
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0x300f0], ebp
cmp eax, ebp
mov dword [esi + 0x300f4], ebp
je 0x41aea1
cmp eax, 1
jne 0x41ade6
mov eax, dword [esi + 0x30114]
and eax, 5
cmp al, 1
je 0x41aea1
cmp dword [esi + 0x14], 0xffffffff
je 0x41af69
cmp dword [esi + 0x200e0], ebp
jle 0x41af69
push 1
push ebp
mov ecx, esi
call fcn.0041b520
mov ecx, dword [esi + 0x58]
push 0
push ecx
call fcn.0041b680
mov eax, dword [esi + 0x200e0]
lea edx, [eax + eax*4]
shl edx, 1
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul qword [0x45f908]
fidiv dword [esi + 0x18]
call fcn.00438344
mov edx, dword [esi + 0x44]
mov ecx, 0x64
sub ecx, eax
push ecx
push edx
call fcn.0041b6a0
mov edx, dword [esi + 0x200e0]
add esp, 0x10
lea eax, [esi + 0x30]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x100dc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 3
mov eax, dword [esi + 0x300f0]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
shl edx, 1
add eax, edx
mov dword [esi + 0x300f0], eax
jmp 0x41af69
push ebx
push edi
lea ebx, [esi + 0x200e0]
lea edi, [esi + 0x44]
cmp dword [edi - 0x30], 0xffffffff
je 0x41af54
cmp dword [ebx], 0
jle 0x41af54
push 1
push ebp
mov ecx, esi
call fcn.0041b520
mov edx, dword [edi + 0x14]
push 0
push edx
call fcn.0041b680
mov eax, dword [ebx]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x45f908]
fidiv dword [edi - 0x2c]
call fcn.00438344
mov edx, dword [edi]
mov ecx, 0x64
sub ecx, eax
push ecx
push edx
call fcn.0041b6a0
mov edx, dword [ebx]
add esp, 0x10
lea eax, [edi - 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [edi - 0x30]
lea eax, [ebx - 0x10004]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi - 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
imul edx
mov eax, dword [esi + 0x300f0]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add eax, edx
mov dword [esi + 0x300f0], eax
inc ebp
add ebx, 0x10008
add edi, 0x54
cmp ebp, 2
jl 0x41aeac
pop edi
pop ebx
mov edx, dword [esi + 0x300ec]
push 0x28
push edx
call fcn.0041b680
add esp, 8
pop esi
pop ebp
add esp, 8
ret
Function at 0x41b280
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp + 4]
push ebx
push edi
push eax
push 0xf003f
push 0
mov ebx, 4
push str.SOFTWARESAGEMDLLRETROFITPORTCOM
push 0x80000002
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b3ad
lea ecx, [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.dwInQueue
push ecx
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x41b32d
cmp dword [esp + 0xc], ebx
jne 0x41b32d
mov eax, dword [esp + 0x1b]
mov edx, dword [esp + 0x1a]
mov ecx, dword [esp + 0x19]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
add eax, edx
mov edx, dword [esp + 0x18]
shl eax, 8
add eax, ecx
and edx, 0xff
shl eax, 8
add eax, edx
cmp eax, 1
jl 0x41b32d
cmp eax, 0x80
jg 0x41b32d
mov ebx, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.dwOutQueue
push eax
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
pop esi
jne 0x41b3a2
cmp dword [esp + 8], 4
jne 0x41b3a2
mov eax, dword [esp + 0x17]
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x15]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x14]
shl eax, 8
add eax, edx
and ecx, 0xff
shl eax, 8
add eax, ecx
cmp eax, 1
jl 0x41b3a2
cmp eax, 0x80
jg 0x41b3a2
mov edi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x120]
shl ebx, 0xa
shl edi, 0xa
mov dword [eax], ebx
mov dword [ecx], edi
pop edi
pop ebx
add esp, 0x110
ret 8
Function at 0x41cd00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45b45a
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, ecx
mov cx, word [eax + 4]
push edi
mov word [esi + 4], cx
mov dx, word [eax + 6]
mov word [esi + 6], dx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov cx, word [eax + 0x10]
mov word [esi + 0x10], cx
mov dx, word [eax + 0x12]
mov word [esi + 0x12], dx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x18], edx
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x1c], ecx
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x41ce0e
push 0x10
call fcn.0045347a
add esp, 4
mov dword [esp + 0x20], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x41cd91
mov ecx, ebx
mov ebx, dword [ebx]
mov ecx, dword [ecx + 8]
push ecx
mov ecx, eax
call fcn.0041cab0
mov edi, eax
mov eax, dword [esi + 0x30]
mov ebp, dword [esi + 0x28]
test eax, eax
mov dword [esp + 0x18], 0xffffffff
jne 0x41cdd3
mov edx, dword [esi + 0x38]
push 0xc
lea eax, [esi + 0x34]
push edx
push eax
call fcn.0044ec81
mov ecx, dword [esi + 0x38]
add eax, 4
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 0xc]
jl 0x41cdd3
inc ecx
mov edx, dword [esi + 0x30]
mov dword [eax], edx
mov dword [esi + 0x30], eax
sub eax, 0xc
dec ecx
jne 0x41cdc5
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
mov dword [esi + 0x30], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ebp, dword [esi + 0x2c]
inc ebp
mov dword [esi + 0x2c], ebp
mov dword [eax + 8], 0
mov dword [eax + 8], edi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x41ce00
mov dword [ecx], eax
jmp 0x41ce03
mov dword [esi + 0x24], eax
test ebx, ebx
mov dword [esi + 0x28], eax
jne 0x41cd68
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x420ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b84f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], ebp
call fcn.00421cd0
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x30], 0x45fa38
call fcn.00428620
cmp esi, ebp
mov dword [esp + 0x5c], 2
je 0x420b56
mov esi, dword [esi + 8]
cmp esi, ebp
je 0x420b56
mov eax, esi
mov esi, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 8]
add eax, 0x10
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.004283a0
cmp esi, ebp
jne 0x420b3a
mov dword [esp + 0x14], 0x45e6ac
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x10], 0x45e6a0
mov edx, dword [esp + 0x44]
mov byte [esp + 0x5c], 3
lea eax, [edx*4]
push eax
push ebp
call fcn.00420590
mov ecx, dword [esp + 0x24]
add esp, 8
mov edi, eax
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.00422180
mov dword [eax + 8], edi
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x420bbc
mov dword [ecx], eax
jmp 0x420bc0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
lea esi, [eax + 0x34]
call dword [eax + 0x1c]
add edi, 0x10
push eax
push edi
lea ecx, [esp + 0x38]
call dword [esi]
mov esi, dword [esp + 0x64]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0041eec0
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 2
call fcn.0041f010
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, edi
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call fcn.004534a3
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, edi
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call fcn.004534a3
mov ecx, dword [esp + 0x5c]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x54
ret 4
Function at 0x423800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bc5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esp
call fcn.00423950
lea ecx, [ebp - 0x20]
call fcn.00454533
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 4], 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4238e7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4238e7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4238e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4238e7
push 0
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.00457037
push 0
push 0x1000
lea edx, [ebp - 0x48]
mov bl, 2
push 1
push edx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.0045645d
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x8c]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00423970
push 0
push 0
mov ecx, esi
call fcn.00422f50
test eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x8c]
jne 0x423908
call fcn.00456539
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00457073
mov dword [ebp - 4], 0xffffffff
call fcn.00454571
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00456539
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00457073
mov dword [ebp - 4], 0xffffffff
call fcn.00454571
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x424840
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45bd7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x471e00]
push ebx
mov dword [esp + 4], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push str.HardwareDeviceMapSerialComm
push 0x80000002
mov dword [esp + 0x234], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4249bc
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push edi
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x30]
push 0
lea edx, [esp + 0x138]
mov eax, ebx
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x44], 0x104
inc ebx
call ebp
cmp eax, 0x7a
je 0x4249ae
test eax, eax
jne 0x4249ae
cmp dword [esp + 0x20], 1
jne 0x424894
cmp dword [esp + 0x1c], 3
jbe 0x424894
mov ecx, 3
mov edi, 0x4712e4
lea esi, [esp + 0x28]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x424894
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push str.COM_d
push ecx
mov dword [esp + 0x20], edx
call fcn.00438604
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 1
jl 0x424894
cmp eax, 0x100
jg 0x424894
lea edx, [esp + 0x128]
lea ecx, [esp + 0x10]
push edx
call fcn.0045324f
xor esi, esi
lea ecx, [esp + 0x10]
push esi
push str.DeviceSAG_USB
call fcn.0044e47e
cmp eax, 0xffffffff
jne 0x424989
push esi
push str.DeviceUSB_Mobile
lea ecx, [esp + 0x18]
call fcn.0044e47e
cmp eax, 0xffffffff
jne 0x424989
push esi
push str.DeviceOxser
lea ecx, [esp + 0x18]
call fcn.0044e47e
cmp eax, 0xffffffff
je 0x42498e
mov esi, 2
jmp 0x42498e
mov esi, 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x240]
push esi
push eax
push ecx
call dword [esp + 0x248]
add esp, 0xc
test eax, eax
jne 0x424894
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
lea ecx, [esp + 4]
mov dword [esp + 0x228], 0xffffffff
call fcn.00453112
mov ecx, dword [esp + 0x220]
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x425630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45be98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0xa8]
test eax, eax
je 0x425684
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa8]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0x44]
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
push 0
lea ecx, [esp + 8]
call fcn.00424b80
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0x45fe90
mov dword [esp + 8], 0x45fe88
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push 0x4738a0
lea edx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [eax + 0x7c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x428620
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [ecx + 0x18]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x18]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x18]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ecx + 0x18]
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x42b550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45c590
push eax
mov edx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
xor esi, esi
cmp edx, esi
jl 0x42b6b5
cmp edx, 9
jg 0x42b6b5
mov eax, 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov esi, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov eax, 0x20
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov esi, 0x80
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], eax
mov eax, edx
push edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x90], esi
mov ebx, 8
mov edi, 0x10
mov esi, 0x102
mov dword [esp + 0x24], ebx
shl eax, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], 0x100
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], 0x400
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], 0x1000
mov esi, dword [esp + eax + 0xc]
mov dword [ecx + 0x14c], esi
mov esi, dword [esp + eax + 0x10]
mov eax, dword [esp + eax + 0x18]
mov dword [ecx + 0x150], esi
mov dword [ecx + 0x154], eax
mov dword [ecx + 0x134], edx
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xfc
ret 4
push 0xa
lea ecx, [esp + 0xec]
push edx
push ecx
call fcn.0042d0d0
push eax
lea edx, [esp + 0xe8]
push str.Deflator:
push edx
mov dword [esp + 0x118], esi
call fcn.00426550
push str._is_an_invalid_deflate_level
push eax
lea eax, [esp + 0xe8]
mov byte [esp + 0x120], 1
push eax
call fcn.004266a0
add esp, 0x24
mov esi, eax
mov bl, 2
lea ecx, [esp + 0xa8]
mov byte [esp + 0x100], bl
call fcn.00438d80
push esi
lea ecx, [esp + 0xbc]
mov byte [esp + 0x104], 3
mov dword [esp + 0xb8], 1
call fcn.00426140
lea ecx, [esp + 0xa8]
push 0x468b30
push ecx
mov byte [esp + 0x108], bl
mov dword [esp + 0xb0], 0x45fe78
call fcn.00438838
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x430396
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45ca0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi + 0xc], 0x45e6ac
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0xa
mov dword [esi + 8], 0x45e6a0
mov dword [esp + 0x10], eax
mov dword [esi + 4], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi], 0x460f50
call fcn.00430490
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x43ee49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4729a0
cmp edx, dword [eax]
je 0x43ee6b
add eax, 8
inc ecx
cmp eax, 0x472a30
jl 0x43ee5c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4729a0]
jne 0x43ef99
mov eax, dword [0x4758e0]
cmp eax, 1
je 0x43ef73
test eax, eax
jne 0x43ee9c
cmp dword [0x4722a4], 1
je 0x43ef73
cmp edx, 0xfc
je 0x43ef99
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43eed3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0043f480
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043e500
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43ef16
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043e500
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x463a30
push edi
call fcn.00445c00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0043f480
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043f490
lea eax, [ebp - 0xa0]
push 0x463a10
push eax
call fcn.0043f490
push dword [esi + 0x4729a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043f490
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00445b68
add esp, 0x2c
pop edi
jmp 0x43ef99
lea eax, [ebp + 8]
lea esi, [esi + 0x4729a4]
push 0
push eax
push dword [esi]
call fcn.0043e500
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 0x44cb70
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.004393c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44cc3b
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 0x44cc3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x44cbee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x44cbf9
or bh, 8
and edi, 0x8000000
je 0x44cc14
mov eax, dword [0x47755c]
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 0x44cc3b
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 0x44d010
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 0x44d03b
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 0x44d05f
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 0x44d07a
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 0x44dcec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44dd0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043a19e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x44dd2f
test byte [esp + 8], 2
je 0x44dd2f
call fcn.0043a211
mov dword [eax], 0xd
call fcn.0043a21a
mov dword [eax], 5
jmp 0x44dd08
xor eax, eax
ret