joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bc913
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call int.005efe03
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x5bca36
push ecx
lea ecx, [esi + 0x18]
call int.005dc133
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x5bca4d
push ecx
lea ecx, [esi + 0x24]
call fcn.005dc043
mov dword [ebp - 4], 0xffffffff
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
Function at 0x64d15d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x654338
cmp edx, dword [eax]
je 0x64d17f
add eax, 8
inc ecx
cmp eax, 0x6543c8
jl 0x64d170
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x654338]
jne 0x64d2ad
mov eax, dword [0xa57c90]
cmp eax, 1
je 0x64d287
test eax, eax
jne 0x64d1b0
cmp dword [0x654264], 1
je 0x64d287
cmp edx, 0xfc
je 0x64d2ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64d1e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064db40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064dfd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64d22a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064dfd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6526d4
push edi
call fcn.0064fea0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064db40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064db50
lea eax, [ebp - 0xa0]
push 0x6526b4
push eax
call fcn.0064db50
push dword [esi + 0x65433c]
cmp al, 0x43
add byte gs:[ebp - 0x9f7b], cl
call dword [eax - 0x18]
in eax, 8
add byte [eax], al
lea eax, [ebp + 8]
lea esi, [esi + 0x65433c]
push 0
push eax
push dword [esi]
call fcn.0064dfd0
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]
Function at 0x403900
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 0x40391b
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 0x403952
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40394e
jmp 0x403940
cmp esi, eax
jae 0x403952
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403940
cmp esi, eax
jb 0x403959
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 0x40cb40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov cl, byte [edx]
or eax, 0xffffffff
test cl, cl
je 0x40cbe7
movzx ecx, cl
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
neg ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x40cb53
not eax
pop ebp
ret
Function at 0x416770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4167a0
xor edx, edx
cmp dword [esi + 0x3cc], edx
jle 0x4167a0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
nop
mov cl, byte [edi + eax]
xor byte [eax], cl
inc edx
inc eax
cmp edx, dword [esi + 0x3cc]
jl 0x416790
pop edi
pop esi
pop ebp
ret 8
Function at 0x41fd20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1bc0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x65ff58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
lea eax, [edi + 0x14]
mov dword [esi + 0xc], edx
push eax
lea ecx, [ebp + 8]
mov dword [esi + 0x10], ebx
call fcn.00404870
push eax
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 0
call fcn.00407860
or ebx, 0xffffffff
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea ecx, [edi + 0x18]
push ecx
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 1
call fcn.00407860
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea edx, [edi + 0x1c]
push edx
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 2
call fcn.00407860
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 3
call fcn.00407860
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea ecx, [edi + 0x24]
push ecx
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 4
call fcn.00407860
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea edx, [edi + 0x28]
push edx
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 4], 5
call fcn.00407860
mov dword [ebp - 4], ebx
lea ecx, [ebp + 8]
call fcn.00401330
lea eax, [edi + 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], 6
call fcn.00407860
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea ecx, [edi + 0x30]
push ecx
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 7
call fcn.00407860
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea edx, [edi + 0x34]
push edx
lea ecx, [ebp + 8]
call fcn.00404870
push eax
lea ecx, [esi + 0x34]
mov dword [ebp - 4], 8
call fcn.00407860
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401330
lea eax, [edi + 0x38]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404870
push eax
lea ecx, [esi + 0x38]
mov dword [ebp - 4], 9
call fcn.00407860
lea ecx, [ebp - 0x10]
call fcn.00401330
mov cl, byte [edi]
mov byte [esi], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43c910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, 1
lea esi, [ecx + 8]
mov ebx, eax
shr ebx, 0x1e
xor eax, ebx
imul eax, edi
add eax, edx
mov dword [esi], eax
inc edx
add esi, 4
cmp edx, 0x270
jl 0x43c927
pop edi
pop esi
mov dword [ecx], 0x270
pop ebx
pop ebp
ret 8

Function at 0x43c980
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
lea edx, [esi + 0x9c4]
mov edi, 0xe3
nop
mov eax, dword [edx + 4]
xor eax, dword [edx]
and eax, 0x7fffffff
xor eax, dword [edx]
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [edx + 0x634]
shr eax, 1
xor ecx, eax
mov dword [edx - 0x9c0], ecx
add edx, 4
dec edi
jne 0x43c990
lea edx, [esi + 0xd50]
mov edi, 0x18c
nop
mov eax, dword [edx]
xor eax, dword [edx + 4]
and eax, 0x7fffffff
xor eax, dword [edx]
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [edx - 0xd4c]
shr eax, 1
xor ecx, eax
mov dword [edx - 0x9c0], ecx
add edx, 4
dec edi
jne 0x43c9d0
mov eax, dword [esi + 0x1380]
xor eax, dword [esi + 4]
and eax, 0x7fffffff
xor eax, dword [esi + 0x1380]
mov edx, eax
and dl, 1
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [esi + 0x634]
shr eax, 1
xor ecx, eax
mov dword [esi + 0x9c0], ecx
mov dword [esi], edi
pop edi
pop esi
ret
Function at 0x43ca40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
lea eax, [ecx + 0x638]
mov edx, 0x68
push edi
mov edi, edi
mov esi, dword [eax - 0x630]
mov ecx, dword [eax - 0x634]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, dword [eax - 0x634]
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
shr ecx, 1
and edi, 0x9908b0df
xor edi, ecx
xor edi, dword [eax]
mov dword [eax + 0x38c], edi
mov edi, dword [eax - 0x62c]
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
shr ecx, 1
and esi, 0x9908b0df
xor esi, dword [eax + 4]
xor esi, ecx
mov dword [eax + 0x390], esi
mov esi, dword [eax - 0x628]
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
shr ecx, 1
and edi, 0x9908b0df
xor edi, dword [eax + 8]
xor edi, ecx
mov dword [eax + 0x394], edi
mov edi, dword [eax - 0x624]
mov ecx, edi
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
shr ecx, 1
and esi, 0x9908b0df
xor esi, dword [eax + 0xc]
xor esi, ecx
mov dword [eax + 0x398], esi
mov esi, dword [eax - 0x620]
mov ecx, esi
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, edi
mov ebx, ecx
and bl, 1
movzx edi, bl
neg edi
sbb edi, edi
and edi, 0x9908b0df
xor edi, dword [eax + 0x10]
shr ecx, 1
xor edi, ecx
mov ecx, dword [eax - 0x61c]
xor ecx, esi
and ecx, 0x7fffffff
xor ecx, esi
mov ebx, ecx
mov dword [eax + 0x39c], edi
and bl, 1
movzx esi, bl
neg esi
sbb esi, esi
and esi, 0x9908b0df
xor esi, dword [eax + 0x14]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0x3a0], esi
add eax, 0x18
dec edx
jne 0x43ca50
pop edi
pop esi
pop ebx
ret

Function at 0x43cb90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push 0x6c078965
push 0
call fcn.00431ba0
add esp, 4
push eax
mov ecx, 0x661890
call fcn.0043c910
ret

Function at 0x43eee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d47d6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x65ff58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
call fcn.0043e390
mov byte [esi + 0x24], bl
push 0x5f03f8
lea ecx, [esi + 0x34]
mov dword [ebp - 4], ebx
mov byte [esi + 0x25], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
call fcn.00405530
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0043ee60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f560
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], 0x5fafc8
call fcn.005b7490
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x4a9f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4a9f3e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x4aa01d
mov esi, edx
shr esi, 3
push edi
jmp 0x4a9f60
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x605300]
add ecx, 8
sub edx, 8
dec esi
jne 0x4a9f60
pop edi
test edx, edx
je 0x4aa03a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x605300]
inc ecx
dec edx
jne 0x4aa021
not eax
pop esi
pop ebp
ret

Function at 0x4aa040
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x605300]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x605300]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x4afbb0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e02c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x65ff58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 1
mov edi, ecx
mov byte [ebp - 0x2d], 0
call fcn.004af0c0
add esp, 4
push eax
lea eax, [ebp - 0x34]
push 0x606048
push eax
call fcn.0041a060
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0041e8d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00405530
mov ecx, edi
call fcn.004af5a0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00401330
cmp byte [edi], 0
je 0x4afd20
lea ecx, [ebp - 0x34]
push 0x606034
push ecx
call fcn.0041a060
mov esi, eax
lea edx, [ebp - 0x2c]
push 0
push edx
mov dword [ebp - 4], 1
call fcn.004afae0
add esp, 0x10
mov ebx, eax
push 0
push 0x4883000
push 0
push 0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041e8d0
push eax
push 0x5faeb4
mov ecx, ebx
call fcn.00406d50
push eax
mov eax, dword [edi + 8]
push eax
call fcn.0042e920
add esp, 0x20
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00404890
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00401330
test esi, esi
je 0x4afd17
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0x1f
mov ebx, 4
push esi
mov dword [ebp - 0x44], ebx
call fcn.0042e9a0
or dword [ebp - 0x38], 0x180
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x1f
push esi
call fcn.0042e840
push 0
push 0
push 0
push 0
push esi
call fcn.0042e7d0
push 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 0x20000013
push esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], ebx
call fcn.0042dfd0
add esp, 0x48
cmp dword [ebp - 0x3c], 0xc8
jne 0x4afd17
mov byte [ebp - 0x2d], 1
push esi
call fcn.0042e040
add esp, 4
mov ecx, edi
call fcn.004af090
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b734a
mov esp, ebp
pop ebp
ret
Function at 0x4c0737
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 0x4c077e
call fcn.004c3a1b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c077e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4c079a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004c0237
mov esi, eax
test edi, edi
je 0x4c0798
test ebx, ebx
je 0x4c0798
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4c15ff
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.004c3a1b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c1638
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.004c123c
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 0x4c1696
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 0x4c16ba
cmp dword [edi + 0x74], 0
jne 0x4c16ba
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004c3a1b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004c1657
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 0x4c28a1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5ec2b7
call fcn.005badda
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4c28c6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4c2918
call fcn.004c07fd
push eax
lea ecx, [ebp - 0x10]
call fcn.004011d0
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.005b7fa0
push eax
call fcn.00403810
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401040
mov eax, esi
call fcn.005baeb2
ret 8
Function at 0x4c3dfa
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.004c3a9e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c3e44
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0049a080
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406d20
jmp 0x4c3e4f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004cc794
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c3e55
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.004c2193
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4c3e92
call fcn.004c3a9e
mov dword [esi + 0xc], 1
jmp 0x4c3e97
call fcn.004c3a9e
cmp dword [esi], 0
je 0x4c3ee0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4c3eb8
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0049a080
jmp 0x4c3eca
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401340
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406d20
jmp 0x4c3f04
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4c3f04
push dword [esi]
push dword [ebp + 8]
call fcn.004cc794
pop esi
pop ebp
ret 0xc

Function at 0x4c6ce0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x65ff58]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4c6d25
push 0x609698
push 4
push eax
call fcn.005b87ec
push eax
call fcn.00403810
add esp, 0x10
jmp 0x4c6d3b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6dbb
push edi
call fcn.005baf26
mov edi, dword [eax]
call fcn.005baf26
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005b91c8
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005baf26
cmp dword [eax], 0
je 0x4c6d8f
call fcn.005baf26
push dword [eax]
call fcn.004b8433
pop ecx
jmp 0x4c6d96
call fcn.005baf26
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4c6dbb
cmp dword [ebp - 0x234], esi
jae 0x4c6dbb
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4c6dbd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005b734a
leave
ret