joyce8/EMBER2024-capa huggingface dataset:
Function at 0x536873
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00547250
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0052fe14
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5368b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x536a11
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00546fd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5b2400]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00531ad8
mov ecx, dword [esi*4 + 0x5b2400]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x536a0a
cmp eax, dword [edi + ecx + 0x24]
jne 0x536a0a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x536a0a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00531ad8
add esp, 0x14
test edx, edx
jl 0x536a0a
jg 0x536980
test eax, eax
jb 0x536a0a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x536a0a
jl 0x53699a
cmp dword [ebp - 0x1008], eax
ja 0x536a0a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5369b8
test ebx, ebx
je 0x5369f1
cmp ecx, edi
jae 0x5369f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x5369d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5369de
cmp byte [ecx + 1], 0xa
jne 0x5369de
inc ecx
jmp 0x5369de
movzx eax, al
movsx eax, byte [eax + 0x5b0110]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5369b8
cmp edx, ebx
jne 0x5369b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x536a0f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00519459
leave
ret

Function at 0x53ae9e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x566dc4
push 0x566dbc
push str.FlsAlloc
push 0x1e
call fcn.0053accb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53aed2
push dword [ebp + 8]
mov ecx, esi
call dword [0x54c7ac]
call esi
jmp 0x53aed8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x53af1c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x566dd4
push 0x566dcc
push str.FlsGetValue
push 0x20
call fcn.0053accb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53af53
push dword [ebp + 8]
mov ecx, esi
call dword [0x54c7ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x53e275
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053dd9c

Function at 0x53e964
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053e8e0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x53eadc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x53eadc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x53ea8b
jg 0x53e9bd
test eax, eax
je 0x53ea81
push 1
push 0x1000
call fcn.0053c9ba
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x53e9e3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x53ea78
push 0x8000
push ebx
call fcn.00534487
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x53ea0f
jg 0x53ea0a
cmp ecx, 0x1000
jb 0x53ea0f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052fc14
add esp, 0x10
cmp eax, 0xffffffff
je 0x53ea54
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x53ea0a
jl 0x53ea3b
test ecx, ecx
jne 0x53e9fc
push dword [ebp - 0xc]
push ebx
call fcn.00534487
push esi
call fcn.0053a277
add esp, 0xc
xor edi, edi
jmp 0x53eaed
cmp byte [edi + 0x24], 0
je 0x53ea6b
cmp dword [edi + 0x20], 5
jne 0x53ea6b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x53ea76
mov edi, dword [edi + 0x18]
jmp 0x53ea78
xor edi, edi
push esi
call fcn.0053a277
pop ecx
jmp 0x53eaed
test ecx, ecx
jg 0x53ea4d
jl 0x53ea8b
test eax, eax
jae 0x53ea4d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00531af6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x53eaae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x53ea4d
jmp 0x53eae5
push ebx
call fcn.00531f59
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x53ea4d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x53eaed
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x53eaea
mov edi, dword [edi + 0x18]
jmp 0x53eaed
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00531af6
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x53ee27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053ec98
Function at 0x53fd40
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x53fddd
push ebx
push esi
call fcn.0053fd09
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0053a52e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x53fd8a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x53fddc
push edi
push eax
call fcn.0053a9bd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x53fdaa
call fcn.0053a277
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x53fddb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0053a52e
add esp, 0x20
test eax, eax
jne 0x53fdc9
push edi
call fcn.0053a277
jmp 0x53fdd1
push ebx
call fcn.0053a277
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x53fde0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x53fdf1
pop esi
ret
push ebx
push edi
push esi
call fcn.0053fd09
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0053a9bd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x53fe19
push ebx
push esi
push edi
call fcn.0051aed0
add esp, 0xc
push 0
call fcn.0053a277
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x100056cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x1006287b
call fcn.10022aa4
sub esp, 0x24
mov al, byte [ebp + 0xb]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], 0x47
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x50
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x48
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x70
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x30], al
call fcn.1000a102
lea eax, [ebp - 0x20]
push eax
call fcn.10022e90
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000a13e
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x30]
push 1
mov ecx, edi
pop esi
mov byte [edi], al
push ebx
mov dword [ebp - 4], esi
call fcn.1000a102
push dword [0x10069908]
lea eax, [ebp - 0x30]
mov ecx, edi
push ebx
push eax
call fcn.1000a034
mov dword [ebp - 0x10], esi
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.1000a102
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000a811
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov eax, dword [edi + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x1000a8e0
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1000a880
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x1000a8cb
push dword [edi + 0x34]
mov eax, dword [ebp + 0x14]
add eax, dword [esi - 4]
push 4
push 0x1000
push ebx
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x1000a8e8
mov eax, dword [ebp + 0x14]
push ebx
add eax, dword [esi - 4]
push 0
push eax
mov dword [esi - 8], eax
call fcn.10023590
add esp, 0xc
jmp 0x1000a8cb
mov ecx, dword [esi + 4]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call fcn.1000a805
pop ecx
test eax, eax
pop ecx
je 0x1000a8e8
push dword [edi + 0x34]
mov ebx, dword [ebp + 0x14]
mov eax, ebx
add eax, dword [esi - 4]
push 4
push 0x1000
push dword [esi]
push eax
call dword [edi + 0x1c]
add esp, 0x14
test eax, eax
je 0x1000a8e8
mov eax, dword [esi + 4]
push dword [esi]
add eax, dword [ebp + 8]
add ebx, dword [esi - 4]
push eax
push ebx
call fcn.10022f10
add esp, 0xc
mov dword [esi - 8], ebx
mov eax, dword [edi]
inc dword [ebp - 4]
add esi, 0x28
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x1000a83d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x1000a8e3
Function at 0x1000dc91
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov eax, 0x10063abf
call fcn.10022aa4
sub esp, 0x58
mov al, byte [ebp + 0xf]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], al
call fcn.1000a102
push 1
mov esi, 0x10086078
pop edi
mov byte [ebp - 0x64], 0x5f
push esi
mov dword [ebp - 4], edi
mov byte [ebp - 0x63], 0x30
mov byte [ebp - 0x62], 0x31
mov byte [ebp - 0x61], 0x32
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x34
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x36
mov byte [ebp - 0x5c], 0x37
mov byte [ebp - 0x5b], 0x38
mov byte [ebp - 0x5a], 0x39
mov byte [ebp - 0x59], 0x61
mov byte [ebp - 0x58], 0x62
mov byte [ebp - 0x57], 0x63
mov byte [ebp - 0x56], 0x64
mov byte [ebp - 0x55], 0x65
mov byte [ebp - 0x54], 0x66
mov byte [ebp - 0x53], 0x67
mov byte [ebp - 0x52], 0x68
mov byte [ebp - 0x51], 0x69
mov byte [ebp - 0x50], 0x6a
mov byte [ebp - 0x4f], 0x6b
mov byte [ebp - 0x4e], 0x6c
mov byte [ebp - 0x4d], 0x6d
mov byte [ebp - 0x4c], 0x6e
mov byte [ebp - 0x4b], 0x6f
mov byte [ebp - 0x4a], 0x70
mov byte [ebp - 0x49], 0x71
mov byte [ebp - 0x48], 0x72
mov byte [ebp - 0x47], 0x73
mov byte [ebp - 0x46], 0x74
mov byte [ebp - 0x45], 0x75
mov byte [ebp - 0x44], 0x76
mov byte [ebp - 0x43], 0x77
mov byte [ebp - 0x42], 0x78
mov byte [ebp - 0x41], 0x79
mov byte [ebp - 0x40], 0x7a
mov byte [ebp - 0x3f], 0x41
mov byte [ebp - 0x3e], 0x42
mov byte [ebp - 0x3d], 0x43
mov byte [ebp - 0x3c], 0x44
mov byte [ebp - 0x3b], 0x45
mov byte [ebp - 0x3a], 0x46
mov byte [ebp - 0x39], 0x47
mov byte [ebp - 0x38], 0x48
mov byte [ebp - 0x37], 0x49
mov byte [ebp - 0x36], 0x4a
mov byte [ebp - 0x35], 0x4b
mov byte [ebp - 0x34], 0x4c
mov byte [ebp - 0x33], 0x4d
mov byte [ebp - 0x32], 0x4e
mov byte [ebp - 0x31], 0x4f
mov byte [ebp - 0x30], 0x50
mov byte [ebp - 0x2f], 0x51
mov byte [ebp - 0x2e], 0x52
mov byte [ebp - 0x2d], 0x53
mov byte [ebp - 0x2c], 0x54
mov byte [ebp - 0x2b], 0x55
mov byte [ebp - 0x2a], 0x56
mov byte [ebp - 0x29], 0x57
mov byte [ebp - 0x28], 0x58
mov byte [ebp - 0x27], 0x59
mov byte [ebp - 0x26], 0x5a
mov byte [ebp - 0x25], bl
call fcn.10022e90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.1000a13e
xor esi, esi
cmp dword [ebp + 0xc], ebx
jle 0x1000de11
call fcn.10009e32
add eax, esi
push eax
call fcn.100241d0
pop ecx
call fcn.100241dd
push 0x3e
cdq
pop ecx
idiv ecx
lea ecx, [ebp - 0x24]
mov al, byte [ebp + edx - 0x64]
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
push edi
call fcn.100132ff
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x1000ddd7
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x24]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.1000a102
push dword [0x10069908]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.1000a034
mov dword [ebp - 0x14], edi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.1000a102
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1001afd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x1001b017
call fcn.1005b6e9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001b017
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001b02e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x1001b02e
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x100243f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10024419
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10024b1a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1002443c
test byte [esp + 8], 2
je 0x1002443c
call fcn.10024b8d
mov dword [eax], 0xd
call fcn.10024b96
mov dword [eax], 5
jmp 0x10024415
xor eax, eax
ret
Function at 0x10040d60
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.10024050
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x10040e2b
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 0x10040e2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x10040dde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x10040de9
or bh, 8
and edi, 0x8000000
je 0x10040e04
mov eax, dword [0x1008a09c]
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 0x10040e2b
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 0x10041200
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 0x1004122b
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 0x1004124f
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 0x1004126a
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 0x10044edf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10044f17
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.10048c92
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10048c6a
jmp 0x10044f23
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x10046ae6
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 0x10046b28
call fcn.1005b6e9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10046b28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10046b1f
xor eax, eax
jmp 0x10046b30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10046b36
pop edi
pop esi
pop ebx
ret 4

Function at 0x10047dae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x10047dd0
cmp dword [edi + 0x3c], 0
jne 0x10047dd0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.1005b6e9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.10047dfd
pop edi
pop esi
pop ebx
ret 8

Function at 0x10047e4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.1005b6e9
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10047e7c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.10047e8f
pop edi
pop esi
pop ebx
ret 8

Function at 0x1005a045
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.1005b6e9
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1005a082
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005a082
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1005a086
xor eax, eax
jmp 0x1005a104
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.10043fa8
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x1005a0be
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x1005a0a8
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.1005a1f5
push ebx
mov edi, eax
call fcn.10043fd1
test edi, edi
pop ecx
je 0x1005a100
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.10059fbe
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.1005a109
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4