joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001367a
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
sub dword [esi + 0x30], 1
jne 0x1001371d
mov eax, dword [esi + 0x14]
push dword [esi + 0x20]
cmp dword [esi + 0x1c], 0
mov eax, dword [eax + 0xc]
setne bl
push dword [eax + 0x70]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100136b0
call fcn.10016550
and dword [esi + 0x20], 0
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x100136f9
mov ecx, dword [esi + 0x14]
test bl, bl
sete al
movzx eax, al
push eax
push dword [esi + 0x28]
push dword [esi + 0x24]
call fcn.10020f4e
test bl, bl
jne 0x1001371d
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea ecx, [esi + 8]
call fcn.100179c2
mov ecx, dword [esi + 0x14]
push esi
call fcn.100218c9
mov ecx, dword [esi + 0x14]
push esi
call fcn.100217fe
jmp 0x1001371d
call fcn.1001367a
mov ecx, dword [esi + 0x14]
push esi
add ecx, 0xc4
call fcn.10021b1d
push 0x3c
push esi
mov dword [esi], 0x10006564
call fcn.10028063
pop ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016767
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1001c952
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1001c96d
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl

Function at 0x1001c984
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1001c67f
invalid

Function at 0x1001cce2
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
Function at 0x1001cd16
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1001cd33
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1001cd2e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1001cd18
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1001cd20
cmp edx, ebx
jne 0x1001ce6e
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1001ccef
add eax, dword [eax + 4]
jmp 0x1001ccdc
mov dword [ebp + 0xc], ebx
jmp 0x1001cd3e
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1001cd56
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1001cd74
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1001cdd2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1001cdb9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1001cdc2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1001cdcc
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1001cdae
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001cde3
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
jbe 0x1001cd38
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1001ce1f
dec eax
je 0x1001ce16
sub eax, 3
je 0x1001ce0d
mov dword [ebp - 4], 0x40
jmp 0x1001ce3c
mov dword [ebp - 4], 4
jmp 0x1001ce22
mov dword [ebp - 4], 0x20
jmp 0x1001ce22
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1001ce6e
invalid
invalid
push esp
Function at 0x10020dfb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x10020ebe
and eax, 3
je 0x10020e3d
cmp eax, 1
jne 0x10020e46
and edi, 0xfffffffe
mov edi, dword [edi + 0x10]
add edi, 8
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x10020e3d
cmp byte [eax + 0x44], 0
jne 0x10020ebe
mov ecx, edi
call fcn.10013556
jmp 0x10020e94
and edi, 0xfffffffd
push esi
lea eax, [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
mov ecx, esi
call fcn.1002843f
mov ecx, dword [ebp - 4]
call esi
mov edi, dword [edi + 0x20]
mov eax, dword [edi + 0x2c]
add edi, 0x10
test eax, eax
je 0x10020e78
cmp byte [eax + 0x44], 0
je 0x10020e78
xor edi, edi
jmp 0x10020e7f
mov ecx, edi
call fcn.10013556
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, dword [eax + 0x14]
mov ecx, esi
call fcn.1002843f
mov ecx, dword [ebp - 4]
call esi
pop esi
test edi, edi
je 0x10020ebe
cmp dword [edi + 0x14], ebx
je 0x10020eba
push 0x3c
call fcn.10027f44
pop ecx
push edi
push ebx
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.10013486
mov edi, eax
mov ecx, edi
call fcn.10013556
mov eax, edi
jmp 0x10020ec0
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401029
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44ff20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x44ff24]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
xor ecx, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ecx
call fcn.00401022
mov eax, dword [0x44ff28]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x44ff2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x246fef4]
cmp eax, 0xfa9
jne 0x4010a0
mov dword [0x246fef0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ad
mov dword [0x246f97c], ecx
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, esi
xor eax, edx
xor eax, dword [ebp - 0x20]
cmp dword [0x246fef4], 0x213
mov dword [0x246feec], 0xf4ea3dee
mov dword [ebp - 4], eax
jne 0x4010ee
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov eax, dword [ebp - 4]
xor ecx, ecx
sub edi, eax
cmp dword [0x246fef4], 0xc
jne 0x401110
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor ecx, ecx
mov eax, edi
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
add dword [ebp - 8], 0x61c88647
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x28]
add edx, edi
xor eax, edx
xor eax, dword [ebp - 4]
sub esi, eax
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x401074
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
leave
ret

Function at 0x40114e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x246fef4]
mov ecx, dword [0x246f980]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x401209
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x246fef4], 0x959
jne 0x4011f8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.zewaxuwawazuwuyuvivi
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push str.ozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00401029
add ebx, 8
dec edi
jne 0x401176
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4014ef
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x246fef4], 0x400
push edi
jne 0x401550
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call fcn.00401e86
push esi
push esi
call fcn.00401823
push esi
call fcn.00401e21
push esi
call fcn.00401fd1
push esi
push esi
call fcn.00401c6c
push esi
call fcn.00402045
push esi
push esi
call fcn.00401727
add esp, 0x2c
xor edi, edi
cmp edi, 0x16d2a
jge 0x401565
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthI]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x401589
inc edi
cmp edi, 0x3011b
jl 0x401552
mov eax, dword [0x452864]
mov dword [0x246fef4], eax
call fcn.0040120c
mov edi, 0x2ec37
cmp dword [0x246fef4], 0x51f
jne 0x4015b5
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x40159d
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4074de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44fcfc]
jne 0x4074e8
repz ret
jmp fcn.004094a6
Function at 0x408736
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44fcfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004058fe
and dword [ebp - 0x14], 0
cmp dword [0x45d4b4], 0
mov dword [ebp - 0x18], eax
jne 0x4087e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408891
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408891
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45d4b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45d4b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45d4bc], eax
call edi
push eax
call esi
mov dword [0x45d4c4], eax
test eax, eax
je 0x4087e9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45d4c0], eax
mov eax, dword [0x45d4c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408842
cmp dword [0x45d4c4], ecx
je 0x408842
push eax
call esi
push dword [0x45d4c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408842
test ebx, ebx
je 0x408842
call edi
test eax, eax
je 0x408839
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408839
test byte [ebp - 8], 1
jne 0x408842
or dword [ebp + 0x10], 0x200000
jmp 0x408875
mov eax, dword [0x45d4b8]
cmp eax, dword [ebp - 0x18]
je 0x408875
push eax
call esi
test eax, eax
je 0x408875
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408875
mov eax, dword [0x45d4bc]
cmp eax, dword [ebp - 0x18]
je 0x408875
push eax
call esi
test eax, eax
je 0x408875
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45d4b4]
call esi
test eax, eax
je 0x408891
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408893
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004074de
leave
ret
Function at 0x10045f30
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10046108
pushal
mov esi, section.sect_1
lea edi, [esi - 0x2b000]
lea eax, [edi + 0x3d1d8]
push dword [eax]
mov dword [eax], 0x29298597
push eax
push edi
jmp 0x10045f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10045f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10045f60
mov eax, 1
add ebx, ebx
jne 0x10045f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10045f78
jne 0x10045f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10045f78
xor ecx, ecx
sub eax, 3
jb 0x10045fa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1004601a
mov ebp, eax
add ebx, ebx
jne 0x10045fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10045fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10045fe4
inc ecx
add ebx, ebx
jne 0x10045fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10045fc5
jne 0x10045fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10045fc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10046004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10045ff5
jmp 0x10045f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10046004
add edi, ecx
jmp 0x10045f66
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xcf5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10046026
cmp byte [edi], 0x12
jne 0x10046026
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 al, bl
loop 0x1004602b
lea edi, [esi + 0x42000]
mov eax, dword [edi]
or eax, eax
je 0x1004609a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x460f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4612c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10046058
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x46130]
or eax, eax
je 0x10046094
mov dword [ebx], eax
add ebx, 4
jmp 0x10046075
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100460cb
cmp al, 0xef
ja 0x100460be
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100460a0
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100460ad
mov ebp, dword [esi + 0x46134]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100460ff
sub esp, 0xffffff80
jmp 0x10015908
Function at 0x404860
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004070bc
test esi, esi
jne 0x404896
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407244
jmp 0x4048b4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404744
mov edi, eax
test esi, esi
je 0x4048b4
cmp dword [ebx], 0
je 0x4048b4
dec esi
jmp 0x40489d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406130
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004063e0
mov byte [esp], al
cmp byte [esp], 0
jne 0x4062bc
test edi, edi
je 0x4062bc
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4061f3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4061ce
cmp edi, 0xffffffff
je 0x40618f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40618f
mov byte [esp], 0
jmp 0x4062bc
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4061ce
test ebx, ebx
jne 0x4061c4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026f4
test eax, eax
jne 0x4061c4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4062bc
call 0x406424
dec ebp
test ebp, ebp
jg 0x406174
cmp edi, 0xffffffff
je 0x4061f3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4061f1
mov byte [esp], 0
jmp 0x4062bc
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40613e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026f4
cmp ebx, eax
jne 0x4061f3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040632c
mov edx, eax
mov ebx, dword [0x48e8f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40625a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406258
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40625a
xor edi, edi
cmp byte [esp], 0
je 0x406283
mov ebx, dword [esi]
test bl, 1
jne 0x40629c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026f4
cmp ebx, eax
jne 0x406260
mov byte [esp + 1], 1
jmp 0x40629c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026f4
cmp ebx, eax
jne 0x406283
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40620d
cmp byte [esp], 0
je 0x4062bc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406e24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e050], 0
je 0x406e8b
cmp word [0x48e33c], 0xd7b2
jne 0x406e4d
cmp dword [0x48e344], 0
jbe 0x406e4d
mov eax, 0x48e338
call dword [0x48e354]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406eb8
call fcn.00407ac0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x486032], 0
jne 0x406ea7
push 0
push 0x4869c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409724
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409889
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004070bc
cmp si, word [0x486a00]
jb 0x4097bc
cmp si, word [0x486c00]
ja 0x4097bc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4097bc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x486a00]
jae 0x409796
mov edi, ebx
dec edi
jmp 0x4097b7
cmp si, word [ebx*8 + 0x486a00]
jbe 0x4097a6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4097b7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x486a04]
call fcn.00409634
jmp 0x4097bc
cmp edi, dword [ebp - 8]
jae 0x409780
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40986b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40986b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407ea0
push dword [ebp - 0x160]
push 0x4098a4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407ea0
push dword [ebp - 0x164]
push 0x4098b4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407ea0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004080d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409890
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040711c
ret
Function at 0x409a3c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409b3f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x490b80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x490b98]
jne 0x409a88
mov eax, esi
mov edx, 0x490b9a
mov ecx, 0x55
call fcn.00407ea0
push 0x490b80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409b29
push 0x490b80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004070bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409af7
cmp byte [0x490b7c], 0
je 0x409abc
mov edx, esi
mov eax, ebx
call fcn.00409920
jmp 0x409af7
mov edx, esi
mov eax, ebx
call fcn.00409724
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409af7
cmp dword [esi], 0
je 0x409ae0
mov eax, esi
mov edx, 0x409b58
call fcn.00407ff8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409724
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407ff8
push 0x490b80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x490b98], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407e0c
push eax
push 0x490b9a
call sub.kernel32.dll_lstrcpynW
push 0x490b80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b46
lea eax, [ebp - 4]
call fcn.004070bc
ret