joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402019
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4882b0]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402080
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004029ba
lea ecx, [esp + 0x1c]
call fcn.00401e49
cmp eax, dword [esp + 0x14]
je 0x402098
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a47
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402050
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040708b
add esp, 0x2c
ret
mov edx, str.QwruxAA
call fcn.00402da7
push eax
call fcn.00403020
mov eax, dword [ebp + 0x24]
pop ecx
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402a47
jmp 0x402082
Function at 0x4171e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416e84

Function at 0x4171ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417013

Function at 0x4175e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407fe0
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415916
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417629
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417785
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422570
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x487f70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004187b7
mov ecx, dword [esi*4 + 0x487f70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41777e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41777e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41777e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004187b7
add esp, 0x14
test edx, edx
jl 0x41777e
jg 0x4176f4
test eax, eax
jb 0x41777e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41777e
jl 0x41770e
cmp dword [ebp - 0x1008], eax
ja 0x41777e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41772c
test ebx, ebx
je 0x417765
cmp ecx, edi
jae 0x417765
mov al, byte [ecx]
cmp al, 0xd
jne 0x417746
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417752
cmp byte [ecx + 1], 0xa
jne 0x417752
inc ecx
jmp 0x417752
movzx eax, al
movsx eax, byte [eax + 0x42e308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41772c
cmp edx, ebx
jne 0x41772c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417783
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040708b
leave
ret
Function at 0x417c55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x487f70]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417c95
cmp byte [ebx], 0xa
jne 0x417c95
or byte [eax + edi + 0x28], 4
jmp 0x417c9a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417d98
mov al, byte [edx]
cmp al, 0x1a
je 0x417d7a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417cc9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417cee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417cf8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417cab
jmp 0x417d98
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417d75
cmp dword [ebp - 0xc], 0
je 0x417d75
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x487f70]
test byte [eax + edi + 0x28], 0x48
je 0x417d4f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417d3a
mov byte [esi], dl
jmp 0x417d4b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x487f70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417d98
cmp byte [ebp - 1], 0xa
jne 0x417d5e
cmp esi, ebx
jne 0x417d5e
mov byte [esi], 0xa
jmp 0x417d97
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004187d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417d98
mov byte [esi], 0xd
jmp 0x417d97
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x487f70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417d94
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417d98
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417da1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x487f70]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417de4
cmp word [esi], dx
jne 0x417de4
or byte [edi + eax + 0x28], 4
jmp 0x417de9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x417f3c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417f1c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417e2b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417e61
cmp eax, edx
jae 0x417e6d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417e03
jmp 0x417f3c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417f18
cmp dword [ebp - 0x14], 0
je 0x417f18
mov eax, dword [ebx*4 + 0x487f70]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417ef0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417eb9
mov word [esi], cx
jmp 0x417eec
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x487f70]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x487f70]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x487f70]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417f3c
pop ebx
cmp word [ebp - 4], bx
jne 0x417f01
cmp esi, dword [ebp + 0xc]
jne 0x417f01
mov word [esi], bx
jmp 0x417f39
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004187d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417f3c
push 0xd
jmp 0x417f35
mov ecx, dword [ebx*4 + 0x487f70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417f33
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417f3c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..retplne
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x480f4cf1
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x75743f4f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10003ca0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, 0xfffc63e8
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.100038be
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.10003909
push eax
push esi
push dword [ebp + 8]
call fcn.100038be
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.10003909
push eax
push esi
push dword [ebp + 8]
call fcn.100038be
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.100038f9
mov ebp, 0x88e12a50
popfd
jl 0x10003d7e
invalid
invalid
Function at 0x10006b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, pe_overlay
mov esi, ecx
cmp ax, di
jne 0x10006b45
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10006b7a
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x10006b7a
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push ebx
je 0x10006c86
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x10006ba5
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10006bdf
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
mov ecx, pe_overlay
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x10006c8b
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret 4
movzx eax, di
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]
test eax, eax
js 0x10006c86
cmp eax, 1
jle 0x10006c46
cmp eax, 3
jne 0x10006c86
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
mov ecx, pe_overlay
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x10006c8b
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x10006c64
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 0x10006c86
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
je 0x10006c86
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret 4
mov eax, pe_overlay
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.10007cd8
mov esp, ebp
pop ebp
ret 4
Function at 0x100077c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x1000786f
cmp byte [esi + 0x3e], 0
je 0x1000786f
mov eax, dword [esi]
push pe_overlay
call dword [eax + 0xc]
mov ecx, pe_overlay
cmp cx, ax
je 0x10007824
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 0x10007836
sub eax, 1
je 0x1000783a
sub eax, 2
je 0x1000786f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10007858
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 0x10007824
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10007cd8
mov esp, ebp
pop ebp
ret
Function at 0x405634
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x405676
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x405696
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00409868
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x407368
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.00407828
mov byte [esp], al
cmp byte [esp], 0
jne 0x4074f1
test edi, edi
je 0x4074f1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407431
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40740c
cmp edi, 0xffffffff
je 0x4073cd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4073cd
mov byte [esp], 0
jmp 0x4074f1
cmp dword [esi], 1
jg 0x40740c
cmp dword [esi], 0
jne 0x4073fe
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4073fe
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4074f1
lea eax, [esp + 0xc]
call fcn.00407048
dec ebp
test ebp, ebp
jg 0x4073b2
cmp edi, 0xffffffff
je 0x407431
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40742f
mov byte [esp], 0
jmp 0x4074f1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407376
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407431
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040756c
mov edx, eax
mov ebx, dword [0x6638fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407495
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407493
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407495
xor edi, edi
cmp byte [esp], 0
je 0x4074bb
mov ebx, dword [esi]
test bl, 1
jne 0x4074d1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40749b
mov byte [esp + 1], 1
jmp 0x4074d1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4074bb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407448
cmp byte [esp], 0
je 0x4074f1
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 0x4083b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66305c], 0
je 0x408417
cmp word [0x663348], 0xd7b2
jne 0x4083d9
cmp dword [0x663350], 0
jbe 0x4083d9
mov eax, 0x663344
call dword [0x663360]
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, 0x408444
call fcn.004091c0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x65d032], 0
jne 0x408433
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4085d8
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 [0x65d034], 0
je 0x408603
mov edx, edi
mov eax, esi
call dword [0x65d034]
mov ebx, eax
jmp 0x408614
mov eax, 8
call fcn.00405490
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x66305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4085a0
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 0x408644
mov eax, ebx
call fcn.004054ac
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40be44
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 0x40bfa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408718
cmp si, word [0x65da10]
jb 0x40bedc
cmp si, word [0x65dc10]
ja 0x40bedc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bedc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x65da10]
jae 0x40beb6
mov edi, ebx
dec edi
jmp 0x40bed7
cmp si, word [ebx*8 + 0x65da10]
jbe 0x40bec6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bed7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x65da14]
call fcn.0040bd64
jmp 0x40bedc
cmp edi, dword [ebp - 8]
jae 0x40bea0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bf8b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bf8b
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.00409868
push dword [ebp - 0x160]
push 0x40bfc4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409868
push dword [ebp - 0x164]
push 0x40bfd4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409868
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409aa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfb0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408778
ret
Function at 0x40c15c
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 0x40c260
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x665c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x665c2c]
jne 0x40c1a8
mov eax, esi
mov edx, 0x665c2e
mov ecx, 0x55
call fcn.00409868
push 0x665c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c24a
push 0x665c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408718
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c217
cmp byte [0x665c10], 0
je 0x40c1dc
mov edx, esi
mov eax, ebx
call fcn.0040c040
jmp 0x40c217
mov edx, esi
mov eax, ebx
call fcn.0040be44
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c217
cmp dword [esi], 0
je 0x40c200
mov eax, esi
mov edx, 0x40c278
call fcn.004099c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040be44
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004099c0
push 0x665c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x665c2c], bx
mov eax, dword [esi]
call fcn.004097c8
mov ecx, eax
mov eax, 0x665c2e
mov edx, 0xaa
call fcn.0040bcc4
push 0x665c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c267
lea eax, [ebp - 4]
call fcn.00408718
ret