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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
push ebx
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edx
push ecx
call fcn.003aaa7d
mov dword [esp + 0x40], 0xc1064a
xor edx, edx
mov eax, dword [esp + 0x40]
push 0x77
pop ecx
div ecx
mov dword [esp + 0x40], eax
or dword [esp + 0x40], 0xe4a72dc6
add dword [esp + 0x40], 0x6f6e
xor dword [esp + 0x40], 0xe4a3b5d7
mov dword [esp + 0x28], 0xe5013c
add dword [esp + 0x28], 0x749c
xor dword [esp + 0x28], 0xe846cb
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
xor edx, eax
mov dword [esp + 0x2c], eax
mov eax, edx
mov dword [esp + 0x30], edx
and eax, 0xfffffffc
mov ecx, edx
add eax, 4
mov edi, edx
and cl, 3
cmovne edi, eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
add esp, 0x14
mov ecx, edi
call fcn.003bf6a3
mov ebp, eax
pop ecx
test ebp, ebp
je 0x3bb9df
shr edi, 2
xor eax, eax
lea ecx, [esi + edi*4]
xor edi, edi
mov edx, ecx
sub edx, esi
add edx, 3
shr edx, 2
cmp esi, ecx
cmova edx, eax
test edx, edx
je 0x3bb9d5
mov ecx, ebp
sub ecx, esi
mov eax, dword [esi]
xor eax, dword [esp + 0x14]
inc edi
mov dword [ecx + esi], eax
lea esi, [esi + 4]
cmp edi, edx
jb 0x3bb9c4
test ebx, ebx
je 0x3bb9df
mov eax, dword [esp + 0x18]
mov dword [ebx], eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x3bc158
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x38]
mov eax, ecx
push ebp
push esi
push edi
push ebx
push dword [esp + 0x44]
mov dword [esp + 0x24], eax
push edx
push eax
call fcn.003aaa7d
mov dword [esp + 0x40], 0xd04d9a
xor esi, esi
mov dword [esp + 0x44], esi
add esp, 0x10
mov dword [esp + 0x38], esi
mov ebp, esi
mov dword [esp + 0x44], 0x4b2e1c
or dword [esp + 0x44], 0xa6a74ca
shr dword [esp + 0x44], 0xc
xor dword [esp + 0x44], 0x5434c
mov dword [esp + 0x18], 0x5a2110
imul eax, dword [esp + 0x18], 0x31
mov dword [esp + 0x18], eax
xor dword [esp + 0x18], 0x1148aa61
mov dword [esp + 0x14], 0xb57591
add dword [esp + 0x14], 0xffff8fbd
xor dword [esp + 0x14], 0xbe6b94
mov dword [esp + 0x10], 0x9fd46b
shl dword [esp + 0x10], 0xe
xor dword [esp + 0x10], 0xf51d759d
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x2c], eax
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [esp + 0x28], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp dword [edi + 0x18], esi
jbe 0x3bc27d
push dword [esp + 0x10]
mov eax, dword [ecx + ebp*4]
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add eax, ebx
mov ecx, dword [esp + 0x4c]
push eax
call fcn.003abc99
xor eax, 0x32c9db43
add esp, 0xc
cmp eax, dword [esp + 0x1c]
je 0x3bc251
mov ecx, dword [esp + 0x20]
inc ebp
cmp ebp, dword [edi + 0x18]
jb 0x3bc21c
jmp 0x3bc27d
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
movzx eax, word [eax + ebp*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x3bc27d
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x3bc27d
mov ecx, esi
call fcn.003bbf84
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x3bed8b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push dword [esp + 0x24]
push dword [esp + 0x24]
push edx
push ecx
call fcn.003aaa7d
mov dword [esp + 0x20], 0x6e7b54
lea edi, [esi + 4]
or dword [esp + 0x20], 0x15cece1a
xor edx, edx
shl dword [esp + 0x20], 4
imul eax, dword [esp + 0x20], 0x49
push 0x2d
pop ecx
mov dword [esp + 0x20], eax
xor dword [esp + 0x20], 0x126cfc9a
mov dword [esp + 0x38], 0x2bdffd
shl dword [esp + 0x38], 0xf
mov eax, dword [esp + 0x38]
div ecx
mov dword [esp + 0x38], eax
add dword [esp + 0x38], 0xb6ff
xor dword [esp + 0x38], 0x552c2f8
mov ecx, dword [esi]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, esi
call fcn.003bf6a3
mov ebx, eax
mov dword [esp + 0x28], ebx
pop ecx
test ebx, ebx
je 0x3bee91
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x3bee88
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0x3bee5f
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x3c2472
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, ecx
push dword [esp + 0x28]
push ebp
push dword [esp + 0x28]
push edx
push ebx
call fcn.003aaa7d
and dword [esp + 0x2c], 0
add esp, 0x18
mov dword [esp + 0x10], 0x3d6df0
mov dword [esp + 0x20], 0xf54b09
shr dword [esp + 0x20], 0x10
add dword [esp + 0x20], 0xffff0c14
xor dword [esp + 0x20], 0xffff0d0c
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
sub ebp, dword [ecx + 0x34]
mov edx, dword [ecx + eax*8 + 0x78]
mov dword [esp + 0x20], ebp
add edx, ebx
mov ebp, dword [ecx + eax*8 + 0x7c]
add ebp, edx
mov dword [esp + 0x10], ebp
cmp edx, ebp
jae 0x3c252d
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0x3c2524
mov ebp, dword [esp + 0x28]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x14], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, dword [edx]
add ecx, ebx
cmp ax, word [esp + 0x14]
jne 0x3c2519
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0x3c24f4
mov ebp, dword [esp + 0x18]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0x3c24e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40176f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401779
repz ret
jmp fcn.00401a16

Function at 0x40b320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b338
mov eax, 1
add ebx, ebx
jne 0x40b35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b350
jne 0x40b36c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b350
xor ecx, ecx
sub eax, 3
jb 0x40b380
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b3f2
mov ebp, eax
add ebx, ebx
jne 0x40b38b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b3bc
inc ecx
add ebx, ebx
jne 0x40b3a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b39d
jne 0x40b3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b39d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b3dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b3cd
jmp 0x40b33e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b3dc
add edi, ecx
jmp 0x40b33e
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b3fa
cmp byte [edi], 0
jne 0x40b3fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40b3ff
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b46e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf8ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf974]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b42c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf97c]
or eax, eax
je 0x40b468
mov dword [ebx], eax
add ebx, 4
jmp 0x40b449
call dword [esi + 0xf978]
mov ebp, dword [esi + 0xf980]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b4a2
sub esp, 0xffffff80
jmp 0x402cac
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, reloc.uxtheme.dll_GetThemePartSize
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x4014f0
Capabilities:
Check if file exists
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5186db
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x55f550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x26
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4015ef
call fcn.00403a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401552
push 0x80004005
call fcn.004026f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x118]
push str._sInstallShield_Installation_Information399C37FB_08AF_493B_BFED_20FBD85EDF7FTemp.exe
push edx
mov dword [ebp - 4], 0
call fcn.00402000
mov esi, dword [ebp - 0x118]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4015c7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x4015ef
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5614
mov esp, ebp
pop ebp
ret
Function at 0x401a20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x55f550]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a9d
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401a96
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x401a70
lea ecx, [ebp - 0x10c]
push ecx
push str.Temp.exe
call fcn.004f5d44
add esp, 8
test eax, eax
je 0x401aaf
lea edx, [ebp - 0x130]
push edx
push esi
call edi
test eax, eax
jne 0x401a70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5614
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004f5614
mov esp, ebp
pop ebp
ret

Function at 0x402020
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 0x40203b
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 0x402072
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40206e
jmp 0x402060
cmp esi, eax
jae 0x402072
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402060
cmp esi, eax
jb 0x402079
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 0x402e62
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x55f550]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x402eaa
push 0x51bfa0
push 4
push eax
call fcn.004f625d
push eax
call fcn.004027de
add esp, 0x10
jmp 0x402ec0
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x402f43
push edi
call fcn.004f6d9c
mov edi, dword [eax]
call fcn.004f6d9c
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004f6d39
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004f6d9c
cmp dword [eax], 0
je 0x402f17
call fcn.004f6d9c
push dword [eax]
call fcn.0040280a
pop ecx
jmp 0x402f1e
call fcn.004f6d9c
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x402f43
cmp dword [ebp - 0x11c], esi
jae 0x402f43
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x402f45
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f5614
leave
ret
Function at 0x402f52
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x55f550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00402d3a
pop ecx
cmp eax, esi
je 0x40303c
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40303c
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.004f6fe0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x40303c
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40303c
cmp esi, 0x14
jge 0x40303c
push 0x10
push 0
push edi
call fcn.004f6fc2
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40302b
call fcn.004f6d9c
cmp dword [eax], 0x22
je 0x40302b
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.004f6de5
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x403001
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x56088c], 0
jne 0x4030c7
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4030f0
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00402e62
pop ecx
pop ecx
test eax, eax
jne 0x4030f2
inc edi
cmp edi, esi
jl 0x4030cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f5614
leave
ret 8

Function at 0x407d97
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x55f550]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x407dcc
xor eax, eax
jmp 0x407e1f
lea eax, [ebp - 0x210]
push eax
call fcn.004f6de5
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x407dfd
push 0x51c6d4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fa47d
add esp, 0xc
test eax, eax
jne 0x407dc8
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fa47d
add esp, 0xc
test eax, eax
jne 0x407dc8
lea eax, [ebp - 0x210]
push eax
call fcn.00407c91
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f5614
leave
ret
Function at 0x417c84
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 0x417ccb
call fcn.00406577
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 0x417ccb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417ce7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417789
mov esi, eax
test edi, edi
je 0x417ce5
test ebx, ebx
je 0x417ce5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4180c6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5136f4
call fcn.004f66a0
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4180eb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41813d
call fcn.00403a2b
push eax
lea ecx, [ebp - 0x10]
call fcn.00402710
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.004f72a8
push eax
call fcn.004027de
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.00402740
mov eax, esi
call fcn.004f6778
ret 8

Function at 0x43de49
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.0043db08
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43de93
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004055c0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405580
jmp 0x43de9e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040b08d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43dea4
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.00417d90
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 0x43dee1
call fcn.0043db08
mov dword [esi + 0xc], 1
jmp 0x43dee6
call fcn.0043db08
cmp dword [esi], 0
je 0x43df2f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x43df07
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004055c0
jmp 0x43df19
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004024d0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405580
jmp 0x43df53
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 0x43df53
push dword [esi]
push dword [ebp + 8]
call fcn.0040b08d
pop esi
pop ebp
ret 0xc

Function at 0x4682f9
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.00406577
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 0x468332
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.00467f3b
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 0x468390
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 0x4683b4
cmp dword [edi + 0x74], 0
jne 0x4683b4
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00406577
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.00468351
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