joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40552c
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40d6e8
call fcn.004099e0
mov edi, 0x94
mov eax, edi
call fcn.00409b40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5f45f8], ecx
mov eax, dword [esi + 4]
mov dword [0x5f4604], eax
mov edx, dword [esi + 8]
mov dword [0x5f4608], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5f45fc], esi
cmp ecx, 2
je 0x40558c
or esi, 0x8000
mov dword [0x5f45fc], esi
shl eax, 8
add eax, edx
mov dword [0x5f4600], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4055c7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4055c7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4055df
cmp eax, 0x20b
je 0x4055cc
mov dword [ebp - 0x1c], esi
jmp 0x4055f3
cmp dword [ecx + 0x84], 0xe
jbe 0x4055c7
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4055ed
cmp dword [ecx + 0x74], 0xe
jbe 0x4055c7
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00405722
pop ecx
test eax, eax
jne 0x40561f
cmp dword [0x5f45cc], 1
jne 0x40560c
call fcn.004091af
push 0x1c
call fcn.00409038
push 0xff
call fcn.00408c91
pop ecx
pop ecx
call fcn.00409958
mov dword [ebp - 4], esi
call fcn.004097ad
test eax, eax
jge 0x405638
push 0x1b
call fcn.00405507
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5f5bb8], eax
call fcn.0040968b
mov dword [0x5f45c4], eax
call fcn.004095e9
test eax, eax
jge 0x40565e
push 8
call fcn.00405507
pop ecx
call fcn.004093b6
test eax, eax
jge 0x40566f
push 9
call fcn.00405507
pop ecx
push 1
call fcn.00408cc1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405685
push eax
call fcn.00405507
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00409359
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4056a6
movzx eax, word [ebp - 0x40]
jmp 0x4056a9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00404860
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4056c7
push edi
call fcn.00408dec
call fcn.00408e0e
jmp 0x4056f9
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00409a1b
ret
Function at 0x401017
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x41f1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor ebx, ebx
mov dword [ebp - 0x27c], eax
mov dword [eax], ebx
push 1
lea eax, [edi + 0x10]
push eax
call esi
mov dword [ebp - 0x274], eax
lea eax, [edi + 0x14]
push ebx
push eax
call esi
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x401139
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xc]
test eax, eax
je 0x401114
lea ecx, [ebp - 0x26c]
push ecx
push 0x20019
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x401175
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push ebx
push dword [ebp - 0x26c]
mov dword [ebp - 0x270], 0x258
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
mov dword [ebp - 0x260], eax
mov word [ebp - 6], cx
test eax, eax
jne 0x4010f9
cmp dword [ebp - 0x268], 1
je 0x4010f9
push 2
pop eax
cmp dword [ebp - 0x268], eax
je 0x4010f9
mov dword [ebp - 0x260], eax
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x260], 0
lea ebx, [ebp - 0x25c]
jne 0x401175
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x401139
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x401175
push str.FactoryMainGetInterface2
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401169
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x278]
push ebx
push ecx
call eax
add esp, 0x10
jmp 0x40116f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x264], 0
je 0x40119b
push dword [ebp - 0x264]
lea eax, [edi + 0x14]
push eax
call esi
mov dword [ebp - 0x264], eax
test eax, eax
je 0x40119b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x274], 0
pop esi
pop ebx
jne 0x4011ac
push dword [edi + 4]
call dword [edi]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x260]
xor ecx, ebp
call fcn.00418842
leave
ret
Function at 0x407971
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x41f1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0xc]
push edi
xor ebx, ebx
and dword [eax], ebx
xor edi, edi
mov dword [ebp - 0x270], eax
inc edi
lea eax, [esi + 0x10]
xchg dword [eax], edi
lea ecx, [esi + 0x14]
xor eax, eax
xchg dword [ecx], eax
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407a88
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
test eax, eax
je 0x407a5f
lea ecx, [ebp - 0x268]
push ecx
push 0x20019
push 0
push eax
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x407abd
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
push ebx
push dword [ebp - 0x268]
mov dword [ebp - 0x278], 0x258
call sub.ADVAPI32.dll_RegQueryValueExW
xor ecx, ecx
mov dword [ebp - 0x260], eax
mov word [ebp - 6], cx
test eax, eax
jne 0x407a45
cmp dword [ebp - 0x26c], 1
je 0x407a45
push 2
pop eax
cmp dword [ebp - 0x26c], eax
je 0x407a45
mov dword [ebp - 0x260], eax
push dword [ebp - 0x268]
call sub.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x260], 0
lea ebx, [ebp - 0x25c]
jne 0x407abd
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExW
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407a88
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x407abd
mov eax, dword [ebp - 0x264]
push str.FactoryMainGetInterface2
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x407ab2
push dword [ebp - 0x270]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x274]
push ebx
push ecx
call eax
add esp, 0x10
jmp 0x407ab7
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x407adc
lea ecx, [esi + 0x14]
xchg dword [ecx], eax
mov dword [ebp - 0x264], eax
test eax, eax
je 0x407adc
push eax
call sub.KERNEL32.dll_FreeLibrary
test edi, edi
pop edi
pop ebx
jne 0x407ae8
push dword [esi + 4]
call dword [esi]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x260]
xor ecx, ebp
call fcn.00418842
leave
ret
Function at 0x40e9e2
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jne 0x40e9f3
push 0x10
pop eax
pop ebp
ret
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0x4108a7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004107dd
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4108db
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4108db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x410b80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
cmp dword [0x41f280], edi
jne 0x410ca1
push ebx
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, edi
je 0x410c5e
mov ecx, ebx
mov dword [ebp - 4], edi
lea edx, [ecx + 2]
mov si, word [ecx]
inc ecx
inc ecx
test si, si
jne 0x410bb4
sub ecx, edx
sar ecx, 1
test ecx, ecx
je 0x410be5
lea eax, [eax + ecx*2 + 2]
mov ecx, eax
inc edi
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x410bd0
sub ecx, esi
sar ecx, 1
test ecx, ecx
jne 0x410bc6
mov dword [ebp - 4], edi
sub eax, ebx
inc eax
inc eax
sar eax, 1
lea eax, [eax + edi*2 + 2]
add eax, eax
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
pop ecx
test esi, esi
je 0x410c57
xor eax, eax
lea ecx, [esi + edi*4 + 4]
mov edx, ebx
test edi, edi
jbe 0x410c53
mov dword [esi + eax*4], ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, edx
lea edi, [eax + 2]
mov bx, word [eax]
inc eax
inc eax
test bx, bx
jne 0x410c16
sub eax, edi
sar eax, 1
mov ebx, ecx
mov dword [ebp - 8], eax
mov eax, edx
sub ebx, edx
movzx edi, word [eax]
mov word [ebx + eax], di
inc eax
inc eax
test di, di
jne 0x410c2d
mov eax, dword [ebp - 8]
add eax, eax
lea ecx, [ecx + eax + 2]
lea edx, [edx + eax + 2]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jb 0x410c0a
mov ebx, dword [ebp - 0x10]
and dword [esi + eax*4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
call fcn.00417702
cmp dword [0x41f280], 0
jne 0x410c8a
test esi, esi
je 0x410c80
mov dword [0x41f284], esi
mov dword [0x41f280], esi
xor esi, esi
jmp 0x410c8a
mov dword [0x41f280], 0x41f2dc
call fcn.00417749
test esi, esi
je 0x410c9a
push esi
call fcn.00418508
pop ecx
call fcn.0041254b
pop esi
pop ebx
mov eax, dword [0x41f280]
pop edi
leave
ret
Function at 0x410d33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x41f1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x41f2d0], esi
jne 0x410e36
xor eax, eax
push 0x18e
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x20019
push esi
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410e1e
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x198]
push eax
push esi
push str.sLanguage
push dword [ebp - 0x1a0]
mov dword [ebp - 0x19c], 0x190
mov dword [ebp - 0x198], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410e12
cmp dword [ebp - 0x198], 1
je 0x410de5
cmp dword [ebp - 0x198], 2
jne 0x410e12
mov eax, dword [ebp - 0x19c]
shr eax, 1
cmp eax, 0xc8
jb 0x410df9
mov eax, 0xc7
xor ecx, ecx
mov word [ebp + eax*2 - 0x194], cx
lea eax, [ebp - 0x194]
push eax
call sub.msvcrt.dll__wcsdup
pop ecx
mov esi, eax
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41b8c0
push esi
push 0x41f2d4
push 0x41f2d0
call fcn.0041257a
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [0x41f2d0]
xor ecx, ebp
pop esi
call fcn.00418842
leave
ret
Function at 0x412619
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x41f1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
mov dword [ebp - 0x198], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41267b
cmp word [ebp - 0x194], 0
jne 0x412693
xor eax, eax
movzx ecx, word [eax + 0x41bb44]
mov word [ebp + eax - 0x194], cx
inc eax
inc eax
test cx, cx
jne 0x41267d
lea eax, [ebp - 0x194]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41269c
sub eax, edx
sar eax, 1
mov ebx, eax
test edi, edi
je 0x4126d1
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4126d0
push esi
lea eax, [ebp - 0x194]
push eax
push edi
call sub.msvcrt.dll_wcsncpy
add esp, 0xc
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00418842
leave
ret

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

Disassembly:
cmp byte [0x41f318], 0
jne 0x417ffe
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
neg esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x417fba
mov dword [ecx*4 + 0x41f660], eax
inc ecx
cmp ecx, 0x100
jb 0x417fb5
xor eax, eax
xor ecx, ecx
pop esi
add eax, dword [ecx + 0x41f660]
add ecx, 4
cmp ecx, 0x400
jb 0x417fe3
test eax, eax
setne al
mov byte [0x41f318], al
ret

Function at 0x417fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x41f318], 0
jne 0x418010
call fcn.00417fa9
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, edx
and edi, 0xfffffffc
add edi, ecx
not eax
cmp ecx, edi
je 0x41808c
mov edx, 0xff
push ebx
movzx ebx, byte [ecx]
mov esi, eax
and esi, edx
xor esi, ebx
shr eax, 8
xor eax, dword [esi*4 + 0x41f660]
movzx esi, byte [ecx + 1]
mov ebx, eax
and ebx, edx
xor esi, ebx
shr eax, 8
xor eax, dword [esi*4 + 0x41f660]
movzx esi, byte [ecx + 2]
mov ebx, eax
and ebx, edx
xor esi, ebx
shr eax, 8
xor eax, dword [esi*4 + 0x41f660]
add ecx, 4
mov esi, eax
movzx eax, byte [ecx - 1]
mov ebx, esi
and ebx, edx
xor eax, ebx
shr esi, 8
xor esi, dword [eax*4 + 0x41f660]
mov eax, esi
cmp ecx, edi
jne 0x41802e
mov edx, dword [ebp + 0x10]
pop ebx
and edx, 3
add edi, edx
jmp 0x4180a6
movzx edx, byte [ecx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f660]
inc ecx
cmp ecx, edi
jne 0x418093
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x41852c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x41d970
call fcn.0041877c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x400000], 0x5a4d
jne 0x418574
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x418574
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x41858d
cmp ecx, 0x20b
je 0x41857a
and dword [ebp - 0x1c], 0
jmp 0x4185a1
cmp dword [eax + 0x84], 0xe
jbe 0x418574
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x41859b
cmp dword [eax + 0x74], 0xe
jbe 0x418574
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x41fa64], edi
mov dword [0x41fa68], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41f328]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41f324]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41fa60], eax
call fcn.00418776
cmp dword [0x41f1c0], 0
jne 0x418601
push fcn.00418776
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00418764
push 0x4192e0
push 0x4192dc
call sub.msvcrt.dll__initterm
mov eax, dword [0x41f320]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41f31c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x4192d8
push 0x419274
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x418666
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x418715
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x4186a7
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x418682
cmp cx, 0x22
jne 0x41866f
cmp word [eax], 0x22
jne 0x41868d
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x41869b
cmp cx, 0x20
jbe 0x418688
test byte [ebp - 0x54], 1
je 0x4186b4
movzx ecx, word [ebp - 0x50]
jmp 0x4186b7
cmp word [eax], 0x20
jbe 0x41868d
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x4186a7
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.00402d4f
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x4186d7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x418713
mov eax, esi
call fcn.004187b7
ret

Function at 0x418842
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f1c8]
jne 0x418853
test ecx, 0xffff0000
jne 0x418853
ret
jmp fcn.00418858
Function at 0x4048bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040769c
test esi, esi
jne 0x4048f4
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.004077d8
jmp 0x404912
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047a0
mov edi, eax
test esi, esi
je 0x404912
cmp dword [ebx], 0
je 0x404912
dec esi
jmp 0x4048fb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4066bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x536054], 0
je 0x40671d
cmp word [0x536330], 0xd7b2
jne 0x4066e5
cmp dword [0x536338], 0
jbe 0x4066e5
mov eax, 0x53632c
call dword [0x536348]
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
push 0x406748
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x530030], 0
jne 0x406739
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4068c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x530038], 0
je 0x4068ee
mov edx, esi
mov eax, ebx
call dword [0x530038]
jmp 0x4068fd
mov eax, 8
call fcn.00404478
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x536055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406890
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40950c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409673
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040769c
cmp si, word [0x5307e0]
jb 0x4095a6
cmp si, word [0x5309e0]
ja 0x4095a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4095a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5307e0]
jae 0x409580
mov edi, ebx
dec edi
jmp 0x4095a1
cmp si, word [ebx*8 + 0x5307e0]
jbe 0x409590
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4095a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5307e4]
call fcn.0040941c
jmp 0x4095a6
cmp edi, dword [ebp - 0xc]
jae 0x40956a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409655
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409655
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407894
push dword [ebp - 0x164]
push 0x409690
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407894
push dword [ebp - 0x168]
push 0x4096a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407894
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40967a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407694
ret
Function at 0x40982c
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 0x409931
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x538b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x538b74]
jne 0x409878
mov eax, esi
mov edx, 0x538b78
mov ecx, 0x55
call fcn.00407894
push 0x538b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40991b
push 0x538b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040769c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4098e9
cmp byte [0x538b58], 0
je 0x4098ae
mov edx, esi
mov eax, ebx
call fcn.0040970c
jmp 0x4098e9
mov edx, esi
mov eax, ebx
call fcn.0040950c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4098e9
cmp dword [esi], 0
je 0x4098d2
mov eax, esi
mov edx, 0x40994c
call fcn.00407aa8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040950c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407aa8
push 0x538b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x538b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407728
push eax
push 0x538b78
call sub.kernel32.dll_lstrcpynW
push 0x538b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409938
lea eax, [ebp - 4]
call fcn.0040768c
ret