joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d14
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bb8
xor eax, eax
push ebp
push 0x407dd4
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004060b0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061e0
mov eax, dword [ebx]
call fcn.00407bdc
test al, al
jne 0x407db1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004060b0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061e0
mov eax, dword [ebx]
call fcn.00407bdc
test al, al
jne 0x407db1
mov eax, ebx
call fcn.00405ad4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ddb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405b34
lea eax, [ebp - 4]
call fcn.00405ad4
ret

Function at 0x40834c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4154e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040601c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41554e
test ah, 4
je 0x415547
test bl, bl
jne 0x41550c
mov al, 1
jmp 0x415575
test al, 0x10
je 0x415514
xor eax, eax
jmp 0x415575
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x415538
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x415575
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x415575
test al, 0x10
sete al
jmp 0x415575
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41556f
cmp ebx, 3
je 0x41556f
cmp ebx, 0x7b
je 0x41556f
mov eax, esi
call fcn.004154a4
test al, al
jne 0x415573
xor eax, eax
jmp 0x415575
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41557c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040601c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x415623
test esi, 0x400
jne 0x4155b8
test esi, 0x10
setne bl
jmp 0x415647
cmp byte [esp], 0
je 0x4155ec
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x415647
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x415647
test esi, 0x10
je 0x4155f8
mov bl, 1
jmp 0x415647
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41561f
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x415647
mov bl, 1
jmp 0x415647
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x415641
cmp eax, 3
je 0x415641
cmp eax, 0x7b
je 0x415641
cmp eax, 0x35
je 0x415641
cmp eax, 0x15
jne 0x415645
xor ebx, ebx
jmp 0x415647
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41586c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040601c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4158c1
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4158bb
test ah, 4
je 0x4158bb
test al, 0x10
je 0x4158bb
mov eax, esi
call fcn.0040601c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4158c1
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4170f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x417131
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405c10
jmp 0x41713a
mov eax, ebx
mov edx, esi
call fcn.00405d8c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417144
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x417166
movzx eax, word [esp]
jmp 0x417168
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417f65
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417c48
mov esi, eax
mov eax, dword [0x43d414]
cmp byte [eax], 0
je 0x417f0d
mov eax, dword [0x43d338]
call fcn.004044d8
call fcn.00403d50
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417e10]
call fcn.00406c4c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417f80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417f49
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43d314]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x440c44]
call fcn.00406d04
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417f6c
lea eax, [ebp - 4]
mov edx, dword [0x417e10]
call fcn.00406c58
ret

Function at 0x419024
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405e88
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040832c
mov edi, eax
cmp edi, 0x104
jbe 0x418fcb
mov eax, edi
add eax, eax
call fcn.00403bfc
mov esi, eax
jmp 0x418fcd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040832c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x419008
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418ff2
mov eax, esp
cmp esi, eax
je 0x419015
mov eax, esi
call fcn.00403c18
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x419050
cmp bl, 0
je 0x41904c
cmp bl, 0x41
jl 0x419047
cmp bl, 0x5a
jg 0x419047
or bl, 0x20
xor al, bl
inc esi
jmp 0x41902b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418f8c

Function at 0x419270
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004060b0
add esp, 0x800
pop ebx
ret
Function at 0x41955c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405ad4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040601c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4195a1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405c10
jmp 0x4195ba
mov edx, ebx
dec edx
mov eax, esi
call fcn.00406108
push ebx
mov eax, dword [esi]
call fcn.0040601c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c820
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x43b20c
test edx, edx
jne 0x41c83f
xor eax, eax
jmp 0x41c95d
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x41c85c
push esi
push edx
push eax
call fcn.0041c964
add esp, 0xc
jmp 0x41c95d
push esi
push edx
push eax
call fcn.0041cc24
add esp, 0xc
jmp 0x41c95d
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4346d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
mov dword [ebx + 0x14], edi
push edi
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
push eax
push esi
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, ebx
pop ecx
call fcn.0043472c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x434980
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x434a15
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x434a30
push ebx
push 0x434a40
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406268
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00404548
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040601c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4349ff
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434a1c
lea eax, [ebp - 4]
call fcn.00405ad4
ret
Function at 0x434a48
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb8
xor eax, eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x338], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x434c2f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x338]
call fcn.00434790
mov edx, dword [ebp - 0x338]
lea eax, [ebp - 4]
mov ecx, 0x434c48
call fcn.004061e0
xor ecx, ecx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2e0]
call fcn.004043f0
call fcn.00403d50
lea eax, [ebp - 0x2e0]
call fcn.004040b0
call fcn.00403d50
mov edx, 0x434c70
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
push 0x434c88
lea edx, [ebp - 0x340]
xor eax, eax
call fcn.00403fbc
push dword [ebp - 0x340]
push 0x434ca0
lea eax, [ebp - 0x33c]
mov edx, 3
call fcn.00406268
mov edx, dword [ebp - 0x33c]
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
push 0x434cb0
lea edx, [ebp - 0x348]
xor eax, eax
call fcn.00403fbc
push dword [ebp - 0x348]
push 0x434ca0
push 0x434cd4
lea eax, [ebp - 0x344]
mov edx, 4
call fcn.00406268
mov edx, dword [ebp - 0x344]
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
mov edx, 0x434cf4
lea eax, [ebp - 0x2e0]
call fcn.00404aa4
call fcn.00404ba4
call fcn.00403d50
lea eax, [ebp - 0x2e0]
call fcn.004044f0
call fcn.00403d50
lea eax, [ebp - 0x334]
xor ecx, ecx
mov edx, 0x44
call fcn.00404548
mov dword [ebp - 0x308], 1
mov word [ebp - 0x304], 0
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040601c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x434c09
mov eax, dword [ebp - 0x2ec]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2f0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434c36
lea eax, [ebp - 0x348]
mov edx, 5
call fcn.00405b34
lea eax, [ebp - 4]
call fcn.00405ad4
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x407c88
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword es:[sym.imp.KERNEL32.dll_GetShortPathNameW]
sub eax, 2
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
jne 0x407cd5
lea eax, [esp + 4]
push eax
push esp
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
cmp eax, dword [edx + ebp]
je 0x407d19
mov eax, 0x407cd0
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesW
jmp 0x407d19
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x78968d]
sub eax, 0x783648
xacquire lock add dword es:[edx - 0x1b4], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
mov eax, 0
mov dx, cs
push dx
push ecx
retf
add byte [eax], al
add byte [eax], al
dec edi
out 0xce, eax
mov ebx, 0xa8dd0084
jne 0x407d72
jecxz 0x407d8f
inc eax
inc eax
add bh, al
stosd dword es:[edi], eax
push cs
lodsb al, byte [esi]
inc ecx
cmpsd dword gs:[esi], dword es:[edi]
or al, 0x7a
xchg ebx, eax
add byte [eax], 0xe3
mov eax, 0xdb6853d8
jb 0x407dbc
das
mov al, 0x3b
mov ecx, 0x10cd9d15
cmp dword [edx + 0x4b], ebp
stc
cwde
inc ebx
dec edi
daa
nop
sbb dword [esi + 0x371093a3], ebx
inc esi
add byte [esi], ah
pop esi
mov esp, 0x532cc355
xchg dword [edx], ebp
stc
jb 0x407d2a
int 0x19
push ecx
sub cl, byte [ebp + 0x407a3e]
and ecx, esp
pop ss
ljmp 0xc4
mov dword [eax - 0x5e463700], 0x352abf89
mov al, byte [0x694f348]
add byte [eax + eax + 0x60], al
add bh, bh
pop ebx
adc eax, 0xd85c5934
ror ch, 1
rol byte [0x587a5f6], 1
mov ebx, 0x7b0a7c2d
sub dl, byte [ecx]
rol byte [eax], 0xf4
invalid
Function at 0x426390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x4263b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4263b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4263a8
mov eax, 1
add ebx, ebx
jne 0x4263cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4263c0
jne 0x4263dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4263c0
xor ecx, ecx
sub eax, 3
jb 0x4263f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426462
mov ebp, eax
add ebx, ebx
jne 0x4263fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42642c
inc ecx
add ebx, ebx
jne 0x426418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42640d
jne 0x426429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42640d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42644c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42643d
jmp 0x4263ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42644c
add edi, ecx
jmp 0x4263ae
pop esi
mov edi, esi
mov ecx, 0x69d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42646a
cmp byte [edi], 1
jne 0x42646a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42646f
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x4264e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26b6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26be4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42649c
mov ecx, edi
jns 0x4264cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26be8]
or eax, eax
je 0x4264e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4264b9
call dword [esi + 0x26bec]
popal
jmp 0x403280
Function at 0x406450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
movzx eax, bx
mov dword [ebp - 0x34], eax
mov esi, ecx
cmp di, bx
jne 0x40648d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a1b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4064c7
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4064c7
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a1b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x406597
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x4064f4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x406527
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a1b
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x406566
sub eax, 1
je 0x406566
sub eax, 2
jne 0x406597
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4064ff
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x406584
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x406597
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
movzx eax, ax
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a1b
mov esp, ebp
pop ebp
ret 4
Function at 0x406a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x406b54
cmp byte [esi + 0x3e], 0
je 0x406b54
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x406b42
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x406b09
sub eax, 1
je 0x406b0d
sub eax, 2
jne 0x406b42
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a1b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406b2b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x406b42
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a1b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a1b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00409a1b
mov esp, ebp
pop ebp
ret

Function at 0x409937
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40995e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x409961
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00409913
pop esi
leave
ret 8

Function at 0x40a44e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a48d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a48d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a48d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a48d
cmp dword [ecx + 0x74], 0xe
jbe 0x40a48d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret