joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x404d82
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push 0x18
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x404df8
push ebx
push 0x3e
pop ecx
call fcn.00405eea
mov ebx, eax
test ebx, ebx
jne 0x404dc0
mov eax, 0xc000009a
jmp 0x404df7
push edi
mov edi, esi
cmp dword [ebp - 0x1c], esi
jbe 0x404ded
push edi
push 0x4010d0
push 0x1f
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
mov ecx, ebx
call fcn.00404a35
test eax, eax
jns 0x404de7
mov esi, eax
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x404dc8
mov ecx, ebx
call fcn.00405f02
mov eax, esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409647
mov esp, ebp
pop ebp
ret

Function at 0x404e0c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4010fc
lea eax, [ebp - 0xc]
push 3
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x41
pop eax
mov word [ebp - 0xc], ax
push 0x106
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x404e79
mov ecx, dword [ebp - 0xc]
call fcn.00406c42
cmp eax, 0xffffffff
je 0x404e99
lea ecx, [ebp - 0x218]
xor edx, edx
push ecx
push 0
mov ecx, eax
call fcn.00404b1c
test eax, eax
js 0x404e8b
mov ax, word [ebp - 0xc]
inc ax
mov word [ebp - 0xc], ax
cmp ax, 0x5a
jbe 0x404e3c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409647
mov esp, ebp
pop ebp
ret
mov eax, 0xc00000ef
jmp 0x404e8b
Function at 0x405117
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
push 0x1083
call fcn.0040603b
mov ebx, 0x101d
push ebx
call fcn.0040603b
add esp, 0xc
mov ecx, esi
call fcn.00405047
mov edi, eax
test edi, edi
jns 0x405172
push 0x1082
call fcn.0040603b
pop ecx
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.00406087
push ebx
call fcn.0040603b
mov eax, edi
jmp 0x40530f
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x40518a
push 0x1084
call fcn.0040603b
xor eax, eax
jmp 0x40530f
push dword [esi + 8]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x2a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push 7
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], edi
push eax
push 0xc0100080
lea eax, [ebp - 4]
mov dword [ebp - 0x30], 0x40
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jns 0x4051f8
push 0x1086
call fcn.0040603b
pop ecx
push ebx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.00406087
mov eax, ebx
jmp 0x405310
mov ebx, dword [esi + 0x10]
mov eax, 0x200
cmp ebx, eax
jb 0x40520c
test ebx, 0x1ff
je 0x40520e
mov ebx, eax
lea ecx, [ebx + ebx]
call fcn.00405eea
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x405234
push 0x1085
call fcn.0040603b
pop ecx
mov esi, 0xc000009a
jmp 0x4052f2
push edi
push ebx
push edi
push esi
call fcn.00409bf0
mov edi, esi
test eax, eax
je 0x40524c
sub edi, eax
add edi, ebx
mov dword [ebp - 0xc], edi
jmp 0x40524f
mov dword [ebp - 0xc], esi
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405269
push 0x1087
jmp 0x4052da
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4052d5
cmp dword [ebp - 8], ebx
jne 0x4052d5
mov esi, dword [0x410ec0]
push 0x6e
pop ecx
mov esi, dword [esi + 0xc]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405262
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4052ce
cmp dword [ebp - 8], ebx
jne 0x4052ce
push 0x108a
call fcn.0040603b
mov esi, dword [ebp - 0x10]
pop ecx
jmp 0x4052f2
push 0x1089
jmp 0x4052da
push 0x1088
call fcn.0040603b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00406087
mov esi, 0xc0000001
mov ecx, dword [ebp - 0x14]
call fcn.00405f02
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
push 0x101d
call fcn.0040603b
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064bd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb al, 0xf1
sbb cl, byte ss:[ebp + 0x5d88e845]
call 0xe99ded1b
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040616a
push eax
push esi
push dword [ebp + 8]
call fcn.0040611f
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040616a
push eax
push esi
push dword [ebp + 8]
call fcn.0040611f
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040616a
push eax
push esi
push dword [ebp + 8]
call fcn.0040611f
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040615a
push cs
idiv dword [ecx + ebp - 0x836278]
invalid
Function at 0x40687b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x406831
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40684f
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 0x4068ad
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
invalid
invalid
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x406894
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40689d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4068a7
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x406889
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x406813
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 0x4068fa
dec eax
je 0x4068f1
sub eax, 3
je 0x4068e8
mov dword [ebp - 4], 0x40
jmp 0x406917
mov dword [ebp - 4], 4
jmp 0x4068fd
mov dword [ebp - 4], 0x20
jmp 0x4068fd
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 0x406949
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4068c9
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040615a
add ebp, dword [edi + eax - 0x7b]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x406955
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408878
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push ecx
lea eax, [ebp - 0x18]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x18
pop ebx
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push 3
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push eax
push 0x80000000
lea eax, [ebp - 8]
mov dword [ebp - 0x24], 0x40
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
test esi, esi
js 0x408941
push edi
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
push 0x1f0003
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], edi
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov esi, eax
test esi, esi
js 0x408941
push 0x28
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0xc
push dword [ebp + 8]
push 0x2d1400
push eax
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov esi, eax
cmp esi, 0x103
jne 0x408941
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
js 0x408941
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 4], edi
mov edi, dword [sym.imp.ntdll.dll_NtClose]
je 0x408951
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], 0
je 0x40895c
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4096e5
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x409fb0
call fcn.004099d4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409745
cmp eax, 0xffffffff
je 0x409745
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40973e
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40973e
cmp edx, 0x10000000
jae 0x40973e
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40973b
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00409a19
ret 4

Function at 0x4097b0
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 0x4097ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4097e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4097f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4097d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4098d0
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 0x4098e6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x409901
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4076e4
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.0040ba34
test esi, esi
jne 0x40771a
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.0040bbcc
jmp 0x407738
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407628
mov edi, eax
test esi, esi
je 0x407738
cmp dword [ebx], 0
je 0x407738
dec esi
jmp 0x407721
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040ab3c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a805
test edi, edi
je 0x40a805
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a745
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a720
cmp edi, 0xffffffff
je 0x40a6e1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a6e1
mov byte [esp], 0
jmp 0x40a805
cmp dword [esi], 1
jg 0x40a720
cmp dword [esi], 0
jne 0x40a712
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a712
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a805
lea eax, [esp + 0xc]
call fcn.0040a330
dec ebp
test ebp, ebp
jg 0x40a6c6
cmp edi, 0xffffffff
je 0x40a745
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a743
mov byte [esp], 0
jmp 0x40a805
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a68a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a745
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a880
mov edx, eax
mov ebx, dword [0x7f68f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a7a9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a7a7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a7a9
xor edi, edi
cmp byte [esp], 0
je 0x40a7cf
mov ebx, dword [esi]
test bl, 1
jne 0x40a7e5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a7af
mov byte [esp + 1], 1
jmp 0x40a7e5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a7cf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a75c
cmp byte [esp], 0
je 0x40a805
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40b6cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7f6058], 0
je 0x40b733
cmp word [0x7f6344], 0xd7b2
jne 0x40b6f5
cmp dword [0x7f634c], 0
jbe 0x40b6f5
mov eax, 0x7f6340
call dword [0x7f635c]
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, 0x40b760
call fcn.0040c42c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7f1036], 0
jne 0x40b74f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x40b8f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x7f1038], 0
je 0x40b91f
mov edx, edi
mov eax, esi
call dword [0x7f1038]
mov ebx, eax
jmp 0x40b930
mov eax, 8
call fcn.00406fcc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7f6059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b8bc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40b960
mov eax, ebx
call fcn.00406fe8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40f56c
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 0x40f6d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040ba34
cmp si, word [0x7f1a38]
jb 0x40f604
cmp si, word [0x7f1c38]
ja 0x40f604
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40f604
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7f1a38]
jae 0x40f5de
mov edi, ebx
dec edi
jmp 0x40f5ff
cmp si, word [ebx*8 + 0x7f1a38]
jbe 0x40f5ee
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40f5ff
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7f1a3c]
call fcn.0040f488
jmp 0x40f604
cmp edi, dword [ebp - 8]
jae 0x40f5c8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40f6b3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f6b3
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.0040c7d8
push dword [ebp - 0x160]
push 0x40f6f0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c7d8
push dword [ebp - 0x164]
push 0x40f700
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c7d8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ca10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f6da
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ba94
pop eax
jmp eax
Function at 0x40f888
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 0x40f98e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7f8c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7f8c2c]
jne 0x40f8d4
mov eax, esi
mov edx, 0x7f8c2e
mov ecx, 0x55
call fcn.0040c7d8
push 0x7f8c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f976
push 0x7f8c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040ba34
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f943
cmp byte [0x7f8c10], 0
je 0x40f908
mov edx, esi
mov eax, ebx
call fcn.0040f76c
jmp 0x40f943
mov edx, esi
mov eax, ebx
call fcn.0040f56c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f943
cmp dword [esi], 0
je 0x40f92c
mov eax, esi
mov edx, 0x40f9a8
call fcn.0040c930
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040f56c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c930
push 0x7f8c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7f8c2c], bx
mov eax, dword [esi]
call fcn.0040c724
mov ecx, eax
mov eax, 0x7f8c2e
mov edx, 0xaa
call fcn.0040f3e8
push 0x7f8c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f995
lea eax, [ebp - 4]
call fcn.0040ba34
pop eax
jmp eax
Function at 0x40fbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040bb28
xor eax, eax
push ebp
push 0x40fdf8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40fc16
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40fc30
mov eax, dword [ebp - 4]
call fcn.0040c724
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040f3e8
cmp word [ebp - 0x21e], 0
je 0x40fddb
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fe08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fcff
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fe08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fcff
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fe44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fcff
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fe44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fcff
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40fe78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40fcff
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40feac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40fddb
xor eax, eax
push ebp
push 0x40fdd4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040f9d0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40fd62
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c784
jmp 0x40fdad
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40feec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40fdad
mov eax, dword [ebp - 0x14]
call fcn.00406fcc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40feec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040c784
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fddb
cmp dword [ebp - 0xc], 0
je 0x40fdc8
mov eax, dword [ebp - 0xc]
call fcn.00406fe8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fdff
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ba94
pop eax
jmp eax