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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x30
push ebx
mov edx, 0x550450
lea edi, [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
call fcn.004011f1
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov eax, edi
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x34]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x30
jl 0x40116f
lea esi, [ebp - 0x32]
xor edi, edi
mov dword [ebp - 0x38], 8
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
add al, al
add al, byte [esi]
add cl, cl
add cl, byte [esi + 3]
add al, al
add al, byte [esi + 1]
movsx ecx, cl
add al, al
add al, byte [esi + 2]
add ecx, edi
movsx eax, al
push 4
add ecx, ecx
lea eax, [eax + ecx*8 + 0x550518]
push ebx
push eax
call fcn.004012a4
add esp, 0xc
add edi, 4
add esi, 6
add ebx, 4
dec dword [ebp - 0x38]
jne 0x40118a
mov edi, dword [ebp - 0x3c]
push 0x20
push edi
mov edx, 0x550480
call fcn.004011f1
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa527
leave
ret 4

Function at 0x4017c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.004ff9c0
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7ff
lea eax, [ebp - 0x1007]
push 0
push eax
mov byte [ebp - 0x1008], 0
call fcn.004fd710
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
sub eax, ecx
cdq
mov esi, 0x10f
idiv esi
and dword [ebp - 0x130c], 0
add esp, 0xc
test eax, eax
je 0x40185c
xor eax, eax
jmp 0x40181f
mov eax, dword [ebp - 0x1314]
lea esi, [eax + ecx]
mov ecx, dword [ebx]
mov dword [esi + 6], ecx
lea edi, [ebp + eax - 0x1008]
push 0x43
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x10f
add eax, esi
mov dword [ebp - 0x1314], eax
mov eax, dword [ebx + 8]
sub eax, ecx
cdq
idiv esi
inc dword [ebp - 0x130c]
cmp dword [ebp - 0x130c], eax
jb 0x401819
lea ecx, [ebp - 0x1308]
call fcn.00401000
push 0x7ff
xor esi, esi
lea eax, [ebp - 0x807]
push esi
push eax
mov byte [ebp - 0x808], 0
call fcn.004fd710
add esp, 0xc
mov edi, 0x800
lea eax, [ebp + esi - 0x808]
push eax
lea eax, [ebp + esi - 0x1008]
push eax
lea ecx, [ebp - 0x1308]
call fcn.0040108f
add esi, 8
lea eax, [esi + 8]
cmp eax, edi
jl 0x40188a
and dword [ebp - 0x1310], 0
push 0x550788
lea eax, [ebp - 0x1310]
push 0x550770
push eax
call fcn.004fae36
add esp, 0xc
test eax, eax
jne 0x4018fa
push dword [ebp - 0x1310]
lea eax, [ebp - 0x808]
push edi
push 1
push eax
call fcn.004fafd4
push dword [ebp - 0x1310]
call fcn.004fb10c
add esp, 0x14
xor eax, eax
jmp 0x4018fd
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fa527
leave
ret
Function at 0x40306e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
test edi, edi
je 0x4030a5
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40309f
add esi, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x40307d
jmp 0x4030a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, dword [ebp + 0xc]
xor eax, eax
pop edi
mov dword [ebx], esi
inc eax
pop esi
leave
ret 8

Function at 0x4030b3
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x5508d8
mov edi, 0x400
lea eax, [ebp - 0xc08]
push edi
push eax
mov esi, ecx
call fcn.00403261
add esp, 0x10
mov dword [ebp - 0xc0c], edi
call fcn.0040323c
and dword [ebp - 0xc14], 0
push edi
lea eax, [ebp - 0xc18]
push eax
lea eax, [esi + 8]
push eax
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0xc18], 0xc
mov dword [ebp - 0xc10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40315d
push 0
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x40315d
lea ecx, [ebp - 0xc08]
call fcn.00403170
test eax, eax
je 0x40315d
lea eax, [ebp - 0x404]
push eax
push esi
lea ebx, [ebp - 0xc0c]
call fcn.0040306e
jmp 0x40315f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa527
leave
ret 4

Function at 0x403170
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x85c]
push eax
mov edi, ecx
mov dword [ebp - 0x85c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esi + 8]
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x820], eax
push 0xffffffffffffffff
xor eax, eax
push edi
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x808]
push 0x401
push eax
mov dword [ebp - 0x830], 0x101
call fcn.004fb180
add esp, 0x10
lea eax, [ebp - 0x818]
push eax
xor ebx, ebx
lea eax, [ebp - 0x85c]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x40320d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40322e
push dword [ebp - 0x814]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x818]
call edi
push dword [esi + 8]
call edi
xor eax, eax
mov dword [esi + 8], ebx
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004fa527
leave
ret
Function at 0x4032c1
Capabilities:
Continue service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push 0x1388
call fcn.004033bc
cmp eax, 4
jne 0x4032e8
xor eax, eax
inc eax
jmp 0x403330
cmp eax, 1
jne 0x403300
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40331e
xor eax, eax
jmp 0x403330
cmp eax, 7
jne 0x40331e
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4032fc
cmp dword [ebp - 0x1c], 4
jmp 0x4032fa
push 0x2710
call fcn.004033bc
sub eax, 4
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004fa527
leave
ret

Function at 0x40333d
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x20]
push eax
mov ebx, ecx
push 1
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x403370
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x426
jmp 0x403386
cmp dword [ebp - 0x1c], 1
jne 0x40337b
xor eax, eax
inc eax
jmp 0x40338b
push 0x3a98
call fcn.004033bc
dec eax
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004fa527
leave
ret

Function at 0x403b7d
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0x390
mov eax, 0x5243dd
call fcn.004fd62d
mov dword [ebp - 0x39c], ecx
call fcn.00411ad9
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push 0x2e
push eax
call fcn.004fb6b4
pop ecx
pop ecx
test eax, eax
je 0x403bf6
push 0x550d40
push eax
call fcn.004fb7e5
pop ecx
pop ecx
test eax, eax
jne 0x403bf6
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.004fb6b4
pop ecx
pop ecx
test eax, eax
je 0x403bf6
xor ecx, ecx
lea esi, [ebp - 0x21c]
mov word [eax], cx
call fcn.004058c9
jmp 0x403c74
mov esi, 0x10000
push esi
call fcn.00406e25
push esi
mov ebx, eax
push 0
push ebx
call fcn.004fd710
add esp, 0x10
mov edi, 0x8000
push edi
push ebx
push 0x550d48
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
mov esi, 0x550d9c
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
call fcn.00406e30
pop ecx
lea eax, [ebp - 0x398]
push eax
call fcn.00403ec2
mov ecx, dword [ebp - 0x39c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x398]
mov dword [ecx + 0x20], eax
mov ecx, eax
call fcn.00412600
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x398]
push eax
call fcn.00403c7c
xor eax, eax
call fcn.004fd6b0
ret
Function at 0x40670b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 0x400
push 0x401
push eax
call fcn.004fb4c9
add esp, 0x14
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa527
leave
ret
Function at 0x4067ce
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x244], eax
movzx eax, word [ebp + 8]
mov ebx, 0x5512e0
push ebx
push eax
xor edi, edi
push edi
call esi
mov dword [ebp - 0x234], eax
cmp eax, edi
jne 0x40686c
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
push 0x10
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.004fd122
add esp, 0x10
push ebx
lea eax, [ebp - 0x24]
push eax
push 0
call esi
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x40686a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.FindResource__u__failed__err_u_n
call fcn.0040670b
add esp, 0xc
xor eax, eax
jmp 0x40698b
xor edi, edi
push dword [ebp - 0x234]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40688e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.LoadResource__u__failed__err_u_n
jmp 0x40685b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x238], eax
cmp eax, edi
jne 0x4068b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.LockResource__u__failed__err_u_n
jmp 0x40685b
push dword [ebp - 0x244]
lea eax, [ebp - 0x230]
push dword [ebp - 0x240]
push 0x551a44
push 0x104
push eax
call fcn.00406018
add esp, 0x14
mov esi, 0x80
push esi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push esi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40691f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x230]
push eax
push str.CreateFile_failed__s___err_u_n
jmp 0x40685b
push dword [ebp - 0x234]
mov dword [ebp - 0x23c], edi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
lea eax, [ebp - 0x23c]
push eax
push esi
push dword [ebp - 0x238]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x238], eax
cmp eax, edi
je 0x40695c
cmp esi, dword [ebp - 0x23c]
je 0x40697e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x23c]
lea eax, [ebp - 0x230]
push esi
push eax
push str.WriteFile_failed__s__u__u___err_u_n
call fcn.0040670b
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa527
leave
ret
Function at 0x40699a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x228
mov eax, 0x523f03
call fcn.004fd663
xor edi, edi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x228]
push eax
push 0x54fb2c
push 1
push edi
push 0x54fb6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x224], eax
cmp eax, edi
jl 0x406b03
cmp dword [ebp - 0x228], edi
je 0x406b03
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push edi
push eax
call fcn.004fd710
push 0x5c
push esi
call fcn.004fb6b4
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x220]
push 0x105
push eax
call fcn.004fb180
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
add esp, 0x24
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push 0x551888
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
push 0x54fb3c
push eax
call dword [ecx]
cmp eax, edi
jl 0x406ac9
mov eax, dword [ebp - 0x22c]
cmp eax, edi
je 0x406ac9
lea edx, [ebp - 0x224]
push edx
mov dword [ebp - 0x224], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
or edx, 0x2000
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
lea edx, [ebp - 0x230]
push edx
push 0x54fbac
push eax
call dword [ecx]
mov dword [ebp - 0x224], eax
cmp eax, edi
jl 0x406b03
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x406b03
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x224], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x406b17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
cmp eax, edi
je 0x406b27
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x228]
cmp eax, edi
je 0x406b37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp dword [ebp - 0x224], edi
sete al
call fcn.004fd6bf
ret
Function at 0x406c83
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x570470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004fd710
lea eax, [ebp - 0x210]
push eax
push 0x16
call fcn.00406790
add esp, 0x14
test eax, eax
je 0x406dce
push ebx
push esi
push edi
or ebx, 0xffffffff
push ebx
mov edi, 0x551ad8
push edi
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fca5e
push ebx
push 0x5513bc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fca5e
add esp, 0x20
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406d2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406d2f
xor eax, eax
jmp 0x406dcb
xor eax, eax
cmp eax, 0x5513b4
je 0x406d72
push ebx
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fca5e
push ebx
push 0x5513b4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fca5e
push ebx
push 0x551adc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fca5e
add esp, 0x30
jmp 0x406dba
push 0x5c
push dword [ebp - 0x214]
call fcn.004fb6b4
push ebx
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004fca5e
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.004fb6b4
add esp, 0x20
push 0x6c
pop ecx
push 0x6e
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
push 0x6b
pop ecx
mov word [eax + 6], cx
xor ecx, ecx
mov word [eax + 8], cx
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
call fcn.0040699a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa527
leave
ret

Function at 0x40da6a
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 0x40dab1
call fcn.00415124
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dab1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40dacd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d56a
mov esi, eax
test edi, edi
je 0x40dacb
test ebx, ebx
je 0x40dacb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40df00
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x519226
call fcn.004fd5c4
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40df25
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40df77
call fcn.004108e7
push eax
lea ecx, [ebp - 0x10]
call fcn.004037e2
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.004fb180
push eax
call fcn.0040640c
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.00403847
mov eax, esi
call fcn.004fd69c
ret 8

Function at 0x410d87
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x570470]
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 0x410dcc
push 0x528b40
push 4
push eax
call fcn.004ff0da
push eax
call fcn.0040640c
add esp, 0x10
jmp 0x410de2
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x410e62
push edi
call fcn.004fdb3d
mov edi, dword [eax]
call fcn.004fdb3d
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.004fdada
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004fdb3d
cmp dword [eax], 0
je 0x410e36
call fcn.004fdb3d
push dword [eax]
call fcn.00407351
pop ecx
jmp 0x410e3d
call fcn.004fdb3d
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x410e62
cmp dword [ebp - 0x234], esi
jae 0x410e62
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x410e64
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fa527
leave
ret
Function at 0x411335
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x570470]
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 0x528df8
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00408ec2
pop ecx
cmp eax, esi
je 0x41141f
push 0x528e50
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41141f
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.004fd710
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 0x41141f
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41141f
cmp esi, 0x14
jge 0x41141f
push 0x10
push 0
push edi
call fcn.004ff79f
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41140e
call fcn.004fdb3d
cmp dword [eax], 0x22
je 0x41140e
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.004fd6ee
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4113e4
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 [0x573cc8], 0
jne 0x4114aa
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4114d3
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00410d87
pop ecx
pop ecx
test eax, eax
jne 0x4114d5
inc edi
cmp edi, esi
jl 0x4114b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa527
leave
ret 8

Function at 0x4127ff
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.00415124
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 0x412838
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.0041243c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8