joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x408985
cmp byte [eax], 0
je 0x408985
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, esi
call fcn.00408820
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00408820
mov al, byte [ebp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x4088f0
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004089a0
add esp, 8
jmp 0x40890d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00408790
add esp, 0xc
cmp byte [ebx], 0
je 0x408946
lea ecx, [esp + 0x20]
inc ebx
push ecx
mov dword [ebp + 0xc], ebx
call fcn.004087d0
fmul qword [0x41e1a0]
push ecx
fstp qword [esp]
call fcn.004133d8
fadd qword [0x41e198]
add esp, 8
call fcn.004134a8
mov byte [esi], al
mov al, byte [ebx]
inc esi
test al, al
jne 0x408912
mov al, byte [ebp + 0x14]
test al, al
jne 0x408988
lea edx, [esp + 0x20]
push edx
call fcn.004087d0
fmul qword [0x41e1a0]
push ecx
fstp qword [esp]
call fcn.004133d8
add esp, 8
call fcn.004134a8
cmp edi, esi
je 0x408988
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x408972
mov byte [esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f00
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esp, [esp]
call fcn.00412249
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0041aa31
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x408fca
call fcn.00412249
cmp dword [eax], 0
je 0x408f47
call fcn.00412249
mov ebp, dword [eax]
jmp 0x408f4a
or ebp, 0xffffffff
call fcn.00407650
test esi, esi
mov dword [eax], ebp
jne 0x408f5f
call fcn.00412249
cmp dword [eax], 4
je 0x408f10
mov al, byte [esp + 0x20]
test al, 0x1a
je 0x408fb7
cmp esi, 0xffffffff
jne 0x408f91
call fcn.00407650
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0040bc80
add esp, 4
push eax
push 0x24
push 2
call fcn.00407910
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test al, 6
je 0x408fb7
call fcn.00407650
mov edx, dword [eax]
push edx
push ebx
call fcn.0040bc80
add esp, 4
push eax
push 0x24
push 9
call fcn.00407910
mov al, byte [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x408fc0
test al, 6
je 0x408fd4
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
ret
mov al, byte [esp + 0x20]
test al, 6
je 0x408fd4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x61a048], 1
mov dword [0x61a044], 1
mov dword [0x61a040], 1
mov dword [0x61a038], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x61a014], eax
mov eax, dword [0x61a054]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x61a068]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x61a050]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x618358], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x401520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0x215309
mov dword [esp], 0x403020
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
jne 0x401559
mov eax, 0
jmp 0x40155e
mov eax, 0x403020
leave
ret

Function at 0x4015fb
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
call dbg.__main
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call eax
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
call sym._realStart
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x4018b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401910
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x61a05c]
test esi, esi
jle 0x401a30
mov eax, dword [0x61a060]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401944
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401930
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a57
mov eax, dword [0x61a060]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x61a060]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019c0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019d0
add dword [0x61a05c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x61a060]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40194e
mov eax, dword [0x61a060]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x61a078
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x61a070]
sub esp, 4
test ebx, ebx
je 0x401f45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f3e
test esi, esi
je 0x401f3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f20
mov dword [esp], 0x61a078
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402270
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402295
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4022a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402295
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4022e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4022de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022d0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x43b654
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
add edi, ecx
and edi, ecx
call fcn.0043b686
sub edi, edi
xor dword [ebx], edx
sub ecx, 0xbc1eaead
sub ecx, ecx
add ebx, 1
sub ecx, 0x2276f44
add ecx, edi
or ecx, edi
cmp ebx, eax
jne fcn.0043b654
dec edi
ret
Function at 0x100a81a2
Capabilities:
Terminate process

Disassembly:
jmp 0x10187b70
jmp fcn.1019e510
cmp ecx, dword [0x1022b500]
jne 0x10187b7a
repz ret
jmp 0x100a87a1

Function at 0x100e8380
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
lea edi, [ebp - 0xc4]
mov ecx, 0x31
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0xc4], 0
je 0x100e83dc
mov eax, dword [ebp + 0x10]
imul eax, eax, 0x1000193
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x100e839e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10100140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, 0x10ea
mov word [ebp - 0x38], ax
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.100a8b57
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call fcn.100a6bcc
add esp, 4
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jae 0x101001da
mov eax, dword [ebp - 8]
movzx cx, byte [eax]
mov word [ebp - 0x2c], cx
movzx eax, word [ebp - 0x2c]
movzx ecx, word [ebp - 0x38]
sar ecx, 8
xor eax, ecx
mov word [ebp - 0x20], ax
movzx eax, word [ebp - 0x20]
movzx ecx, word [ebp - 0x38]
add eax, ecx
imul eax, eax, 0xce6d
add eax, 0x58bf
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 0x20]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x1010018a
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.100a7211
mov esp, ebp
pop ebp
ret

Function at 0x10104d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
lea edi, [ebp - 0x164]
mov ecx, 0x59
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1022b500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], 0x94
mov esi, esp
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.100a7211
test eax, eax
jne 0x10104d8d
push str._have_cleartype_quality
call fcn.100a70ea
add esp, 4
xor eax, eax
jmp 0x10104dc4
cmp dword [ebp - 0x98], 5
ja 0x10104db4
cmp dword [ebp - 0x98], 5
jne 0x10104da8
cmp dword [ebp - 0x94], 1
jae 0x10104db4
mov dword [ebp - 0x164], 0
jmp 0x10104dbe
mov dword [ebp - 0x164], 1
mov eax, dword [ebp - 0x164]
push edx
mov ecx, ebp
push eax
lea edx, [0x10104df4]
call fcn.100a66b8
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a81a2
add esp, 0x164
cmp ebp, esp
call fcn.100a7211
mov esp, ebp
pop ebp
ret
Function at 0x1010aeb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
lea edi, [ebp - 0x178]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1022b500]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1022d82c], 0
jne 0x1010af6d
mov dword [ebp - 0xa8], 0x94
mov esi, esp
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.100a7211
cmp dword [ebp - 0x98], 1
jne 0x1010af20
cmp dword [ebp - 0xa4], 4
jne 0x1010af20
cmp dword [ebp - 0xa0], 0xa
je 0x1010af63
mov esi, esp
push str.msimg32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.100a7211
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x1010af63
mov esi, esp
push str.AlphaBlend
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.100a7211
mov dword [0x1022d830], eax
mov dword [0x1022d82c], 1
cmp dword [0x1022d830], 0
jne 0x1010af80
mov eax, 0x3e9
jmp 0x1010b033
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf4]
and ecx, 8
jne 0x1010af98
mov eax, 0x3e9
jmp 0x1010b033
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc8], 1
jne 0x1010afb7
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc8], 0
jne 0x1010afb7
mov eax, 0x3e9
jmp 0x1010b033
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xa], al
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax + 0xc8], 0
sete cl
mov byte [ebp - 9], cl
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xcc]
push eax
mov ecx, dword [ebp + 0x30]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xcc]
push eax
call dword [0x1022d830]
cmp esi, esp
call fcn.100a7211
test eax, eax
jne 0x1010b031
push str._cairo_win32_surface_composite_AlphaBlend_
call fcn.100a70ea
add esp, 4
jmp 0x1010b033
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x1010b064]
call fcn.100a66b8
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a81a2
add esp, 0x178
cmp ebp, esp
call fcn.100ac540
mov esp, ebp
pop ebp
ret
Function at 0x405e00
Capabilities:
Encode data using xor

Disassembly:
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
add byte [eax], al
add byte [ebx], dh
test ecx, 0x348b08e8
mov ch, 0x40
sar byte [ebx], cl
add byte [eax], al
add byte [ebx], dh
test ecx, 0x348b08e8
mov ch, 0x40
sar byte [ebx], cl
xor eax, esi
inc ecx
dec edx
jne 0x405df8
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x7900513d
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x67e86f56
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4138d7
Capabilities:
Parse pe header

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

Function at 0x41639d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4c3ca0
push str.FlsAlloc
push 0x1f
call fcn.0041606f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4163d1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4163d7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41641b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4c3cc4
push str.FlsGetValue
push 0x21
call fcn.0041606f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416452
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41645a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4c3cd8
push str.FlsSetValue
push 0x22
call fcn.0041606f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416494
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418900
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5741ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41894b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00418b5c
test al, al
jne 0x418945
sub edx, 2
cmp edx, edi
jne 0x41892b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41896d
lea eax, [edi + 2]
cmp edx, eax
je 0x41896d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004185c7
add esp, 0x10
jmp 0x418a67
push esi
lea ecx, [ebp - 0x255]
call fcn.00418b5c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4189b0
push dword [ebp - 0x25c]
jmp 0x41895d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4189ed
cmp word [ebp - 0x226], 0
je 0x418a0e
cmp word [ebp - 0x226], ax
jne 0x4189ed
cmp word [ebp - 0x224], 0
je 0x418a0e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004185c7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x418a5a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4189c7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x418a42
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x418a67
push 0x418017
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00420000
add esp, 0x10
jmp 0x418a37
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041036f
leave
ret

Function at 0x41b76a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00414c4b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b7d9
cmp esi, dword [ebp - 4]
je 0x41b7d4
cmp dword [ebp + 0xc], 0
je 0x41b7d4
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41b7b1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041b2bc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41b7db
xor eax, eax
inc eax
jmp 0x41b7db
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41b840
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5741ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00414c4b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00414c4b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41b8b7
cmp word [ecx], dx
je 0x41b8b7
mov eax, dword [0x4c4fac]
push edi
dec eax
push eax
push 0x4c4e98
call fcn.0041b7df
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41b92a
cmp word [eax], dx
je 0x41b92a
mov eax, dword [edi]
test eax, eax
je 0x41b8db
cmp word [eax], dx
je 0x41b8db
lea eax, [ebp - 0x10]
push eax
call fcn.0041b1c2
jmp 0x41b8e4
lea eax, [ebp - 0x10]
push eax
call fcn.0041b25d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41b954
mov eax, dword [0x4c4e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4c4b88
call fcn.0041b7df
add esp, 0xc
test al, al
je 0x41b954
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41b91f
cmp word [eax], di
je 0x41b91f
lea eax, [ebp - 0x10]
push eax
call fcn.0041b1c2
pop ecx
jmp 0x41b956
lea eax, [ebp - 0x10]
push eax
call fcn.0041b25d
jmp 0x41b91c
mov eax, dword [edi]
test eax, eax
je 0x41b941
cmp word [eax], dx
je 0x41b941
lea eax, [ebp - 0x10]
push eax
call fcn.0041b159
pop ecx
jmp 0x41b954
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41ba1f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041b664
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41ba1f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41ba1f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41ba1f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b9ac
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041659a
test ebx, ebx
je 0x41ba1a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041659a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ba1f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ba1f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042234f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41ba21
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041036f
leave
ret