joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534740
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x586e90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], 1
xor eax, eax
push esi
lea ecx, [ebp + 0x24]
mov word [ebp - 0x2c], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
call fcn.00401590
push 0x3c
lea edx, [ebp - 0x6c]
push esi
push edx
call fcn.00511ac0
mov edi, 8
add esp, 0xc
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x440
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
cmp dword [ebp + 0x1c], edi
jb 0x409368
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
jmp 0x40936e
lea ecx, [ebp + 8]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x18], edi
jb 0x40937b
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], edx
jmp 0x409381
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
je 0x4093ad
mov eax, dword [ebp - 0x34]
cmp eax, esi
je 0x4093ad
mov edx, dword [ebp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x18], edi
jb 0x4093be
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040f643
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp + 0x1c], edi
jb 0x4093df
mov edx, dword [ebp + 8]
push edx
call fcn.0040f643
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], esi
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], edi
jb 0x409400
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.0040f643
add esp, 4
mov eax, dword [ebp - 0x30]
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.0050ec37
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x409510
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x586e90]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.00511ac0
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x2e]
push eax
mov word [esp + 0x30], dx
call fcn.00511ac0
add esp, 0x18
call fcn.00409420
test eax, eax
je 0x409589
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0050ec37
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x218]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x409594
lea eax, [esp + 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4095b0
sub eax, edx
sar eax, 1
lea ecx, [esp + eax*2 + 0x216]
movzx eax, word [ecx]
mov edx, 0x2f2f
cmp ax, dx
je 0x4095d8
cmp eax, 0x2f
jne 0x4095e0
mov eax, 0x2f30
mov word [ecx], ax
lea eax, [esp + 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4095f0
sub eax, edx
push 0x100
sar eax, 1
lea ecx, [esp + 0x1c]
mov esi, eax
push 0
push ecx
mov dword [esp + 0x20], esi
call fcn.00511ac0
add esp, 0xc
xor ebx, ebx
test esi, esi
jle 0x409705
xor edx, edx
mov word [esp + 0x12], dx
movzx eax, word [esp + ebx*2 + 0x218]
mov ecx, 0x2f2f
cmp ax, cx
je 0x40966e
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409647
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
jmp 0x409660
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409660
jmp 0x4096c0
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40968f
push 0x80
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, 0x2f2f
lea eax, [esp + 0x10]
mov word [esp + 0x10], cx
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4096a0
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4096b4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
cmp ebx, eax
jne 0x4096fa
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4096fa
push 0x80
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x40962a
lea esi, [esp + 0x18]
call fcn.00409420
mov ecx, dword [esp + 0x424]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.0050ec37
mov esp, ebp
pop ebp
ret
Function at 0x40b8f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40b8f7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40b9cd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x563960]
add ecx, 8
sub edx, 8
dec esi
jne 0x40b910
pop edi
test edx, edx
je 0x40b9ea
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x563960]
inc ecx
dec edx
jne 0x40b9d1
not eax
pop esi
ret

Function at 0x40b9f0
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 + 0x563960]
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 + 0x563960]
mov dword [edx + 8], ecx
ret

Function at 0x40ba40
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 + 0x563960]
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 + 0x563960]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x40c200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x40c236
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 0x40c22c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x40c247
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.00511d40
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x40c270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40c2a3
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 0x40c29e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40c2ce
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40c2b5
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.00511d40
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40c2e3
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 0x40c2dd
cmp byte [esi + 8], 0
je 0x40c2dd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40c3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x40c417
cmp byte [esi + 1], 0
je 0x40c41f
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 0x40c432
cmp byte [esi + 1], 0
je 0x40c426
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x40c43a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40c3f1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x40c43a
mov edx, dword [esi + 0x1c]
mov dword [ebp - 4], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40c44c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00510374
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40c469
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 0x40c57d
jmp 0x40c489
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 0x40c498
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 0x40c4af
mov ebx, 0x404
cmp byte [esi], 0
je 0x40c4d4
cmp byte [esi + 1], 0
je 0x40c57d
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 0x40c4d7
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x40c500
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 0x40c4fb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x40c529
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x40c511
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.00511d40
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x40c57d
lea eax, [ebx - 3]
test eax, eax
js 0x40c56b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40c55f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40c55f
cmp byte [eax + ecx + 2], 5
jne 0x40c55f
cmp byte [eax + ecx + 3], 6
je 0x40c565
test eax, eax
jns 0x40c540
jmp 0x40c56b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40c57d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x40c480
mov eax, dword [ebp - 0x10]
push eax
call fcn.0050f122
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x40d317
cmp dword [esi + 4], 0xffffffff
jne 0x40d317
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d2b6
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp ecx, 0x5c
je 0x40d2e2
cmp ecx, 0x2f
je 0x40d2e2
mov dword [esi + eax*2 + 0x244], 0x2f
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
call fcn.0040c160
add esp, 4
test eax, eax
jne 0x40d2fd
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.0040c5a0
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 0x40da30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x586e90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x40dabb
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00510b59
lea eax, [ebp - 0x414]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da70
sub eax, edx
sar eax, 1
je 0x40da9a
lea ecx, [ebp + eax*2 - 0x416]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x40da95
cmp eax, 0x5c
jne 0x40da9a
xor edx, edx
mov word [ecx], dx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40dabb
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x40db9f
mov ecx, edi
mov edx, edi
jmp 0x40dad0
cmp ax, 0x2f
je 0x40dadc
cmp ax, 0x5c
jne 0x40dade
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x40dad0
cmp ecx, edi
je 0x40db1f
sub ecx, edi
push esi
sar ecx, 1
lea esi, [ecx + ecx]
push esi
lea edx, [ebp - 0x414]
push edi
push edx
call fcn.00511d40
lea ecx, [ebp - 0x414]
push ecx
xor eax, eax
push ebx
mov word [ebp + esi - 0x414], ax
call fcn.0040da30
add esp, 0x14
pop esi
xor edx, edx
mov word [ebp - 0x20c], dx
test ebx, ebx
je 0x40db41
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00510b59
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [ebp - 6], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db50
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp + eax*2 - 0x20c]
push edi
push eax
call fcn.00510b59
add esp, 0xc
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
mov word [ebp - 6], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40db9f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0050ec37
mov esp, ebp
pop ebp
ret
Function at 0x40e650
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 0x40e73b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40e687
cmp dword [esi + 0x40], edi
jae 0x40e687
push eax
call fcn.0040f643
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x40e69f
lea eax, [edi + edi]
push eax
call fcn.0040f609
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.00511d40
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x40e738
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 + 0x562180]
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 + 0x562180]
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 0x40e6b7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x40e77a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x40e75f
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.00511d40
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 0x40e79c
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 0x410568
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x586e90]
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 0x4105ad
push 0x538048
push 4
push eax
call fcn.00511456
push eax
call fcn.00408b70
add esp, 0x10
jmp 0x4105c3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x410643
push edi
call fcn.00511653
mov edi, dword [eax]
call fcn.00511653
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.005115f0
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00511653
cmp dword [eax], 0
je 0x410617
call fcn.00511653
push dword [eax]
call fcn.0040fd66
pop ecx
jmp 0x41061e
call fcn.00511653
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x410643
cmp dword [ebp - 0x234], esi
jae 0x410643
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x410645
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050ec37
leave
ret
Function at 0x410b9c
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x586e90]
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.00410b10
pop ecx
cmp eax, esi
je 0x410c86
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x410c86
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.00511ac0
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 0x410c86
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x410c86
cmp esi, 0x14
jge 0x410c86
push 0x10
push 0
push edi
call fcn.00511a9b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x410c75
call fcn.00511653
cmp dword [eax], 0x22
je 0x410c75
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00510e14
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x410c4b
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 [0x5885cc], 0
jne 0x410d11
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x410d3a
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00410568
pop ecx
pop ecx
test eax, eax
jne 0x410d3c
inc edi
cmp edi, esi
jl 0x410d17
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ec37
leave
ret 8
Function at 0x411a1f
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 0x411a67
call fcn.00413799
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411a67
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x411aaa
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 0x411a93
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 0x411a93
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x411aa7
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 0x4141ff
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.00413799
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 0x414238
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.00413e3c
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 0x414296
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 0x4142ba
cmp dword [edi + 0x74], 0
jne 0x4142ba
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00413799
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.00414257
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 0x417a88
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041de32
call fcn.004104f1
cmp eax, esi
pop esi
jne 0x417aa4
mov ecx, 0x58a3d8
jmp fcn.00423080
ret