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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov dword [ebp - 0x12c], eax
push 7
mov eax, ebx
call fcn.0043dd50
xor eax, eax
add esp, 8
lea edx, [ebx + 8]
lea ecx, [eax + 0x10]
lea edi, [ebp - 0x18]
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
call fcn.0043afb0
mov ecx, 0xf
mov eax, edi
xor esi, esi
lea ecx, [ecx]
cmp ecx, esi
je 0x43dea7
movzx edx, byte [ebp + ecx - 0x18]
mov byte [ebp - 0x125], dl
movzx edx, byte [eax]
mov byte [ebp + ecx - 0x18], dl
movzx edx, byte [ebp - 0x125]
mov byte [eax], dl
inc esi
dec ecx
inc eax
cmp esi, 8
jl 0x43de80
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + 8]
push 0x80
push eax
mov byte [ebp - 0x125], 0
call fcn.005b7fc0
add esp, 0xc
test eax, eax
jns 0x43ded1
mov byte [ebp - 0x125], 1
push 0
mov ecx, 7
mov eax, ebx
call fcn.0043ddc0
add esp, 4
cmp byte [ebp - 0x125], 0
je 0x43defe
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x12c]
mov esi, edi
and esi, 0xf
jle 0x43df26
mov ecx, ebx
sub ecx, esi
lea edx, [ecx + edi - 0x10]
mov ecx, 0x10
lea edi, [ebp - 0x28]
call fcn.0043afb0
mov edi, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x124]
push eax
mov ecx, edi
sub ecx, esi
push ecx
push ebx
push ebx
call fcn.005b76b0
add esp, 0x18
xor eax, eax
test esi, esi
jle 0x43df5c
sub ebx, esi
add ebx, edi
lea esp, [esp]
mov dl, byte [ebp + eax - 0x28]
xor byte [ebx], dl
inc eax
inc ebx
cmp eax, esi
jl 0x43df50
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x43efc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
call fcn.0054876b
mov ebx, eax
shl ebx, 0x10
call fcn.0054876b
or eax, ebx
ror edi, 0xd
mov dword [ebp + 8], edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.0054876b
mov ebx, eax
shl ebx, 0x10
call fcn.0054876b
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.0054876b
mov ecx, dword [esi + 4]
shl eax, 4
cdq
and edx, 0x7fff
add eax, edx
mov edx, dword [esi + 8]
xor edx, dword [ebp + 8]
sar eax, 0xf
mov dword [esi], eax
mov dword [ecx + eax*4], edx
xor dword [esi], 0xd0036751
add edi, 4
cmp edi, 0x40
jl 0x43efe4
pop edi
mov eax, esi
pop ebx
pop ebp
ret

Function at 0x43f040
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push 0x40
call fcn.00445142
add esp, 4
mov dword [esi + 4], eax
call fcn.0054876b
mov edi, eax
shl edi, 0x10
call fcn.0054876b
or eax, edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.0054876b
mov ebx, eax
shl ebx, 0x10
call fcn.0054876b
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.0054876b
mov ecx, dword [esi + 8]
shl eax, 4
cdq
and edx, 0x7fff
add eax, edx
mov edx, dword [esi + 4]
sar eax, 0xf
mov dword [esi], eax
mov dword [edx + eax*4], ecx
xor dword [esi], 0xd0036751
add edi, 4
cmp edi, 0x40
jl 0x43f065
pop edi
mov eax, esi
pop ebx
ret

Function at 0x43f0b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
je 0x43f0df
push ebx
push edi
jmp 0x43f0c0
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x6420b8]
inc ecx
cmp ecx, edx
jb 0x43f0c0
pop edi
pop ebx
not eax
ret
Function at 0x441e00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x441e0e
xor eax, eax
pop ebp
ret
push esi
not eax
cmp edx, 8
jb 0x441edd
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x61b5c8]
add ecx, 8
sub edx, 8
dec esi
jne 0x441e20
pop edi
test edx, edx
je 0x441efa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x61b5c8]
inc ecx
dec edx
jne 0x441ee1
not eax
pop esi
pop ebp
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x61b5c8]
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 + 0x61b5c8]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x61b5c8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x61b5c8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x4426b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x4426eb
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4426e0
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4426fc
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0054d0a0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret

Function at 0x442720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x442753
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44274e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x44277e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x442765
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0054d0a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x442793
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x44278d
cmp byte [esi + 8], 0
je 0x44278d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x442840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x442887
cmp byte [esi + 1], 0
je 0x44288f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x4428a2
cmp byte [esi + 1], 0
je 0x442896
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x4428aa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x442861
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x4428aa
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x4428bc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00544f4c
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4428d9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x4429ed
jmp 0x4428f9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x442908
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x44291f
mov ebx, 0x404
cmp byte [esi], 0
je 0x442944
cmp byte [esi + 1], 0
je 0x4429ed
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x442947
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x442970
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44296b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x442999
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x442981
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0054d0a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x4429ed
lea eax, [ebx - 3]
test eax, eax
js 0x4429db
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x4429cf
cmp byte [eax + ecx + 1], 0x4b
jne 0x4429cf
cmp byte [eax + ecx + 2], 5
jne 0x4429cf
cmp byte [eax + ecx + 3], 6
je 0x4429d5
test eax, eax
jns 0x4429b0
jmp 0x4429db
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4429ed
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x4428f0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00544ec1
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x4439ac
cmp dword [esi + 4], 0xffffffff
jne 0x4439ac
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443940
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x443977
cmp eax, 0x2f
je 0x443977
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x443964
mov eax, dword [0x61dec4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.00442610
add esp, 4
test eax, eax
jne 0x443992
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.00442a10
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x444080
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4440b4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4440b4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x44419e
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x4440d0
cmp ax, 0x5c
jne 0x4440d2
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x4440c4
push edi
cmp ecx, ebx
je 0x444112
sub ecx, ebx
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0054d0a0
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.00444080
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x44413f
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x444130
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x444143
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x444160
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x44419e
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x444e00
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x444eeb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x444e37
cmp dword [esi + 0x40], edi
jae 0x444e37
push eax
call fcn.00445171
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x444e4f
lea eax, [edi + edi]
push eax
call fcn.0044517c
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0054d0a0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x444ee8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x619de8]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x619de8]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x444e67
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x444f2a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x444f0f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0054d0a0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x444f4c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44c2dd
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 0x44c325
call fcn.0044bb77
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44c325
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44c368
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 0x44c351
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 0x44c351
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x44c365
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 0x454605
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 0x45464c
call fcn.0044bb77
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45464c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x454668
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00454105
mov esi, eax
test edi, edi
je 0x454666
test ebx, ebx
je 0x454666
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4554e1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5c1e98
call fcn.0054b7a1
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x455506
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x455558
call fcn.0045590c
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d60
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.005450fd
push eax
call fcn.00406670
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.00406dc0
mov eax, esi
call fcn.0054b879
ret 8
Function at 0x456ef6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x63fbf0]
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 0x456f3b
push 0x5cf618
push 4
push eax
call fcn.00545549
push eax
call fcn.00406670
add esp, 0x10
jmp 0x456f51
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x456fd1
push edi
call fcn.0054be21
mov edi, dword [eax]
call fcn.0054be21
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.00544ffe
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0054be21
cmp dword [eax], 0
je 0x456fa5
call fcn.0054be21
push dword [eax]
call fcn.004452f9
pop ecx
jmp 0x456fac
call fcn.0054be21
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x456fd1
cmp dword [ebp - 0x234], esi
jae 0x456fd1
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x456fd3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00544a28
leave
ret
Function at 0x457478
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x63fbf0]
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 0x5cf8d0
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0044fa7d
pop ecx
cmp eax, esi
je 0x457562
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x457562
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.0054b8b0
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 0x457562
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x457562
cmp esi, 0x14
jge 0x457562
push 0x10
push 0
push edi
call fcn.00547d07
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x457551
call fcn.0054be21
cmp dword [eax], 0x22
je 0x457551
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0054b9e1
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x457527
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 [0x646b64], 0
jne 0x4575ed
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x457616
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00456ef6
pop ecx
pop ecx
test eax, eax
jne 0x457618
inc edi
cmp edi, esi
jl 0x4575f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544a28
leave
ret 8

Function at 0x458ef4
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.0044bb77
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 0x458f2d
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.00458b31
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 0x458f8b
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 0x458faf
cmp dword [edi + 0x74], 0
jne 0x458faf
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0044bb77
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.00458f4c
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