joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e630
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x1001e6a9
mov eax, dword [0x10059004]
mov edi, 0x1005e706
sub edi, eax
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
cmp edx, edi
jb 0x1001e66d
lea ecx, [edi - 1]
push ecx
lea eax, [edx - 1]
push eax
push esi
push 5
call fcn.1001e610
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret
test edx, edx
je 0x1001e684
mov eax, dword [0x10059004]
pop edi
pop esi
lea ecx, [eax + 1]
add ecx, edx
mov dword [0x10059004], ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001e696
mov eax, dword [0x10059004]
pop edi
pop esi
ret
cmp eax, 0xcb
je 0x1001e6a9
push eax
push esi
push 4
call fcn.1001e610
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x1001e6b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x10059004]
sub esp, 0xc
push esi
mov esi, 0x1005e706
sub esi, eax
push esi
push eax
push str.INTEL_LIBITTNOTIFY32
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, esi
jb 0x1001e6e8
lea ecx, [esi - 1]
dec eax
push ecx
push eax
push str.INTEL_LIBITTNOTIFY32
push 5
call fcn.1001e610
add esp, 0x10
jmp 0x1001e72e
test eax, eax
je 0x1001e6fc
mov ecx, dword [0x10059004]
inc eax
add eax, ecx
mov dword [0x10059004], eax
jmp 0x1001e70c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001e717
mov ecx, dword [0x10059004]
test ecx, ecx
je 0x1001e72e
mov eax, ecx
pop esi
add esp, 0xc
ret
cmp eax, 0xcb
je 0x1001e72e
push eax
push str.INTEL_LIBITTNOTIFY32
push 4
call fcn.1001e610
add esp, 0xc
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x10], 0
test edi, edi
jne 0x1001e74e
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebp
push str.RegCloseKey
push edi
call esi
push str.RegOpenKeyExA
push edi
mov ebp, eax
call esi
push str.RegGetValueA
push edi
mov ebx, eax
call esi
mov esi, eax
test ebp, ebp
je 0x1001e833
test ebx, ebx
je 0x1001e833
test esi, esi
je 0x1001e833
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareIntel_CorporationITT_EnvironmentCollector
push 0x80000001
call ebx
test eax, eax
jne 0x1001e833
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001e833
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 4
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x10
push 0
push str.AutoDetect
push eax
call esi
test eax, eax
jne 0x1001e82d
cmp dword [esp + 0x10], eax
je 0x1001e82d
cmp dword [esp + 0x18], eax
je 0x1001e82d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xff5
push eax
push 0x1005e708
push 0
push 1
push 0
push str.INTEL_LIBITTNOTIFY32
push dword [esp + 0x2c]
call esi
push dword [esp + 0x14]
mov esi, eax
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x1001e83a
cmp dword [esp + 0x10], esi
jbe 0x1001e83a
pop ebp
pop ebx
pop edi
mov eax, 0x1005e708
pop esi
add esp, 0xc
ret
push dword [esp + 0x14]
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x1001ec30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041998
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1005901c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], 0
cmp ecx, 0x7fff
jb 0x1001ec83
mov dword [esi + 0x10], 0x7fff
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x1001ec7a
mov eax, dword [esi]
mov byte [eax + 0x7fff], 0
jmp 0x1001ec94
mov eax, 0x7fff
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10015a00
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1001ec9e
mov ecx, dword [esi]
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push 0x7fff
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [esi + 0x10]
mov edi, eax
cmp edi, ecx
ja 0x1001ecd0
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0x10
jb 0x1001ecca
mov esi, dword [esi]
mov byte [esi + edi], 0
jmp 0x1001ecde
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10015a00
mov edx, dword [ebp + 0x20]
xor esi, esi
test edi, edi
mov eax, 0xfffff510
cmove esi, eax
cmp edx, 0x10
jb 0x1001ed1a
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ed10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ed2d
push edx
push ecx
call fcn.100212dc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1002b1aa
int3

Function at 0x10038c04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10038c0f
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4ef6904
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x66a73d3a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
mov bh, 0xc
dec edx
pop ebx
dec eax
mov dword [ebx + 0x48], ebx
mov dword [ebx + 0x48], ebx
xor byte [ecx - 0x760cb7a5], cl
pop ebx
dec eax
mov dword [ebx + 0x48], ebx
mov dword [ebx + 0x48], ebx
xor byte [ecx - 0x760cb7a5], cl
pop ebx
dec eax
mov dword [ebx + 0x48], ebx
mov dword [ebx + 0x48], ebx
push ebx
or dword [ebx], edi
or ebx, esi
sub ebp, dword [ebx + 0x38]
mov dl, 0x89
cwde
dec eax
mov dword [ebx + 0x48], ebx
cmp byte [edx - 0xcb76777], dh
mov dword [ebx + 0x48], ebx
cmpsb byte [esi], byte es:[edi]
add byte [esi - 0x2f7e493d], bh
or eax, 0x580e02ff
jae 0x415342
mov ebp, dword [ecx]
mov dl, 0x89
pop ebx
cmp eax, 0x49a30ab4
or ebx, 0xfdf2a0d8
push edi
retf
mov bh, 0xc
bound edi, qword [esi - 0x60]
xlatb
shl byte [edi + esi*4 + 0x485b894b], 1
popal
adc dword [esi], ebx
or al, 0x76
mov al, 0x5c
or al, 0xbc
cmp esp, dword [ecx]
mov dl, 0x89
mov bl, 0x55
dec ebp
ja 0x415377
int 0x33
std
pop esi
mov al, byte [0xb7a4dee7]
cmp cl, byte [ebx + 0x57]
dec eax
cmpsb byte [esi], byte es:[edi]
add byte [esi + 0x3a69f68e], bh
or ebx, esi
mov byte [ebx], dh
cwde
loope 0x4153b8
pop ebx
and al, byte [0xdf40161]
jbe 0x415402
mov al, byte [0xb7a53477]
dec edx
mov dword [ebx + 0xb], ebp
xor ebx, dword [edi + 0x78]
mov al, 0x89
jecxz 0x415410
pop edi
js 0x4153b5
mov ebx, esp
or byte [ebx - 0x5c5fa438], al
jbe 0x4153b3
or eax, 0x5b
mov al, byte [0xb7a476a3]
mov bh, 0x1b
shl byte [edi + esi*4 + 0x387b310c], cl
sbb edx, edx
movsb byte es:[edi], byte [esi]
mov bh, 0xc
xor dword [ebx + 0x38], edi
mov dl, 0x89
mov bl, 0xb9
invalid
Function at 0x401c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c5b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c92
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401c8e
jmp 0x401c80
cmp esi, eax
jae 0x401c92
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401c80
cmp esi, eax
jb 0x401c99
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408ca0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x580d98
push 0x51ca00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0xf996f0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408db6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408d16
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408db6
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x408d0a
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x408da8
cmp dword [ebp - 0x20], edi
jne 0x408da8
mov dword [ebp - 4], 0
call ebx
mov dword [ebp - 4], 0xfffffffe
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539490
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0xf996f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 0x28], 0x505c3a43
mov dword [ebp - 0x24], 0x72676f72
mov dword [ebp - 0x20], 0x61446d61
mov dword [ebp - 0x1c], 0x335c6174
mov dword [ebp - 0x18], 0x5458542e
mov byte [ebp - 0x14], bl
call fcn.00408ca0
add esp, 4
test eax, eax
je 0x40a325
mov edi, 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a240
sub eax, edx
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00409de0
mov eax, 0xf944c4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a270
sub eax, edx
push eax
push 0xf944c4
lea ecx, [ebp - 0x44]
call fcn.00409de0
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00409f40
add esp, 8
test al, al
sete byte [ebp - 0x61]
cmp dword [ebp - 0x30], 0x10
jb 0x40a2b3
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0040bf0f
add esp, 4
cmp dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov dword [ebp - 4], 0xffffffff
jb 0x40a2d5
mov edx, dword [ebp - 0x60]
push edx
call fcn.0040bf0f
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
cmp byte [ebp - 0x61], bl
je 0x40a2fc
push ebx
push 0x54afe0
push 0x54afd4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x40a327
lea eax, [ebp - 0x28]
push eax
call fcn.00408ca0
add esp, 4
test eax, eax
je 0x40a325
push ebx
push 0x54afe0
push 0x54afc4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x40a327
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ac75
mov esp, ebp
pop ebp
ret

Function at 0x40dae8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040d546
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x40db32
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dac3
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d887
jmp 0x40db3d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042fd0a
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40db43
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004191ed
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x40db80
call fcn.0040d546
mov dword [esi + 0xc], 1
jmp 0x40db85
call fcn.0040d546
cmp dword [esi], 0
je 0x40dbce
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x40dba6
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dac3
jmp 0x40dbb8
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401350
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d887
jmp 0x40dbf2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x40dbf2
push dword [esi]
push dword [ebp + 8]
call fcn.0042fd0a
pop esi
pop ebp
ret 0xc

Function at 0x412620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042ce27
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412659
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00412262
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4126b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4126db
cmp dword [edi + 0x74], 0
jne 0x4126db
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042ce27
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00412678
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x418a08
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 0x418a4f
call fcn.0042ce27
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418a4f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x418a6b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041850d
mov esi, eax
test edi, edi
je 0x418a69
test ebx, ebx
je 0x418a69
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x419944
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5458ea
call fcn.0051d1ab
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x419969
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4199bb
call fcn.0040d006
push eax
lea ecx, [ebp - 0x10]
call fcn.004011a0
mov ecx, dword [esi + 0x6c]
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.0051cfdd
push eax
call fcn.0040c077
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.0051d283
ret 8
Function at 0x425ce4
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 0x425d2c
call fcn.0042ce27
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x425d2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x425d6f
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 0x425d58
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 0x425d58
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x425d6c
mov ecx, dword [esi + 0x68]
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

Function at 0x426ac9
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x426aed
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x426afb
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x426ae7
xor eax, eax
inc eax
pop esi
ret

Function at 0x42c042
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x53ad99
call fcn.0051d1ab
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404050
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42c0a4
call fcn.0042c6ea
cmp eax, 1
jne 0x42c0a4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00402360
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401570
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401020
mov dword [ebp + 8], reloc.ODBC32.dll_SQLAllocConnect
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.0051d283
ret 0x10
Function at 0x42c0cd
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x53ad99
call fcn.0051d1ab
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404050
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42c12f
call fcn.0042c6ea
cmp eax, 1
jne 0x42c12f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00402360
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401570
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401020
mov dword [ebp + 8], reloc.ODBC32.dll_SQLAllocConnect
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.0051d283
ret 0x14

Function at 0x43b90f
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x43b94d
push 0x5515b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x43b95b
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43b95b
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x43b95d
cmp dword [esi + 4], 0
je 0x43b95b
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x489828
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x489842
call fcn.0042ce27
mov esi, dword [eax + 0xc]
push dword [0xf9e948]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x489860
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x489858
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48988d
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48985a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00489756
mov esi, eax
jmp 0x48987f

Function at 0x4fbc90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416dc0
call fcn.00401cf0
cmp eax, esi
pop esi
jne 0x4fbcac
mov ecx, 0xf9cf48
jmp fcn.00433e0a
ret