joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac

Function at 0x43b64d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
and esi, esi
call fcn.0043b67a
add ecx, esi
xor dword [edi], eax
sub ecx, 1
add ecx, esi
inc edi
add esi, 0x645c5c3f
cmp edi, edx
jne fcn.0043b64d
sub ecx, ecx
sub esi, ecx
ret
Function at 0x40b82f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40b879
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40b848
jmp 0x40b879
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40b869
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40c90f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40c944
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40c96e
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40c96e
test edi, edi
je 0x40c93b
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40c93b
test edi, edi
je 0x40c976
mov eax, edi
jmp 0x40c93d
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40c93d
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00410682
add esp, 0xc
int3
Function at 0x4106b6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestRefPtr.exe_gMozillaPoisonSize], eax
call fcn.0040c90f
pop ecx
mov ecx, dword [sym.TestRefPtr.exe_gMozillaPoisonSize]
mov dword [sym.TestRefPtr.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x4106ee
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestRefPtr.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Encode data using xor
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [0x1000b76c]
mov ecx, dword [ebp + 8]
mov edx, dword [0x1000b798]
lea eax, [edx + ecx - 1]
push eax
mov word [esp + 0x1c], 2
call dword [0x1000b788]
push 0x1000accc
mov word [esp + 0x1e], ax
call dword [0x1000b78c]
push 6
push 1
push 2
mov dword [esp + 0x28], eax
call dword [0x1000b778]
push 0x10
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
push edi
call dword [0x1000b77c]
test eax, eax
jne 0x10001153
mov eax, str.fghf423edsfsdgsdg
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001088
push 0
sub eax, edx
push eax
push str.fghf423edsfsdgsdg
push edi
call dword [0x1000b774]
push 0
push 4
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], 0
call dword [0x1000b770]
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
je 0x100010e1
push 0
sub eax, esi
push eax
lea eax, [esi + section..ssss]
push eax
push edi
call dword [0x1000b770]
add esi, eax
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x100010c4
movsx esi, byte [0x1000acde]
mov ecx, dword [esi + section..ssss]
mov edx, dword [0x1000b798]
lea ecx, [ecx + edx - 1]
xor eax, eax
test ecx, ecx
jle 0x10001129
mov bl, byte [edx + 0x1000acde]
mov dl, byte [edx + 0x1000acdd]
mov byte [esp + 0x13], dl
mov dl, byte [eax + esi + 0x1000c004]
sub dl, bl
xor dl, byte [esp + 0x13]
add eax, 1
cmp eax, ecx
mov byte [eax + esi + 0x1000c003], dl
jl 0x1000110e
push edi
call dword [0x1000b780]
movsx eax, byte [0x1000acde]
mov ecx, dword [0x1000b798]
add eax, ecx
lea edx, [eax + 0x1000bfff]
push edx
lea eax, [eax + 0x1000c003]
push eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001398
mov esp, ebp
pop ebp
ret

Function at 0x100011f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x1000b798]
lea esi, [edi + 9]
xor eax, eax
test esi, esi
jle 0x10001227
mov cl, byte [edi + 0x1000acde]
mov dl, byte [edi + 0x1000acdd]
mov edi, edi
mov bl, byte [eax + 0x1000acc0]
sub bl, cl
xor bl, dl
mov byte [eax + 0x1000acc0], bl
add eax, 1
cmp eax, esi
jl 0x10001210
mov eax, 0x1000accc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001230
sub eax, edx
mov ecx, eax
lea esi, [ecx + edi - 1]
xor eax, eax
test esi, esi
jle 0x1000126a
mov cl, byte [edi + 0x1000acde]
mov dl, byte [edi + 0x1000acdd]
mov bl, byte [eax + 0x1000accc]
sub bl, cl
xor bl, dl
mov byte [eax + 0x1000accc], bl
add eax, 1
cmp eax, esi
jl 0x10001253
push 0x1000acc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
ret
Function at 0x10001280
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x1000b798]
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, edx
sub esi, dword [0x1000b768]
xor eax, eax
add esi, 0x10c
test esi, esi
push edi
jle 0x100012c8
mov cl, byte [edx + 0x1000acde]
mov dl, byte [edx + 0x1000acdd]
push ebx
mov edi, edi
mov bl, byte [eax + 0x1000acf0]
sub bl, cl
xor bl, dl
mov byte [eax + 0x1000acf0], bl
add eax, 1
cmp eax, esi
jl 0x100012b0
pop ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
movsx eax, byte [esi + 0x1000acf0]
push eax
push ebp
call edi
mov dword [esi*4 + 0x1000b76c], eax
add esi, 1
cmp esi, 0xb
jl 0x100012d0
pop edi
pop esi
pop ebp
ret

Function at 0x10001398
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100013a2
repz ret
jmp fcn.10001726
Function at 0x1000597b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10001c49
xor ebx, ebx
cmp dword [0x1000b688], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10005a50
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100059bb
xor eax, eax
jmp 0x10005b14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100059b4
push eax
call fcn.10001be6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b688], eax
call esi
push eax
call fcn.10001be6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b68c], eax
call esi
push eax
call fcn.10001be6
mov dword [0x1000b690], eax
lea eax, [ebp - 8]
push eax
call fcn.100019a7
test eax, eax
pop ecx
pop ecx
je 0x10005a1e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100032ec
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10005a50
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10001be6
cmp eax, ebx
pop ecx
mov dword [0x1000b698], eax
je 0x10005a50
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001be6
pop ecx
mov dword [0x1000b694], eax
mov eax, dword [0x1000b694]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10005ac9
cmp dword [0x1000b698], esi
je 0x10005ac9
push eax
call fcn.10001c52
pop ecx
call eax
cmp eax, ebx
je 0x10005a96
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1000b698]
call fcn.10001c52
pop ecx
call eax
test eax, eax
je 0x10005a96
test byte [ebp - 0x18], 1
jne 0x10005ac9
lea eax, [ebp - 0xc]
push eax
call fcn.100019de
test eax, eax
pop ecx
je 0x10005ab1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100032ec
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10005ac0
or dword [ebp + 0x10], 0x200000
jmp 0x10005afa
or dword [ebp + 0x10], 0x40000
jmp 0x10005afa
mov eax, dword [0x1000b68c]
cmp eax, esi
je 0x10005afa
push eax
call fcn.10001c52
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10005afa
mov eax, dword [0x1000b690]
cmp eax, esi
je 0x10005afa
push dword [ebp - 4]
push eax
call fcn.10001c52
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1000b688]
call fcn.10001c52
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1002fd10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1002fd1f
pop dword [ebp - 0x20]
mov eax, 0xa398585a
add eax, 0x6c6aa4c5
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xe4196792
add dword [ebp - 0x30], 0x6a38ddb9
mov dword [ebp - 0x2c], 0x52b6cf58
sub dword [ebp - 0x2c], 0x20838313
mov dword [ebp - 0x28], 0x9f1b166e
add dword [ebp - 0x28], 0xad312dc0
mov dword [ebp - 0x24], 0x11cdda26
sub dword [ebp - 0x24], 0x11cdda26
lea eax, [ebp - 0x30]
push eax
mov eax, 0x1f602f34
sub eax, 0xf5c2ef8
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x7e94c142
add dword [ebp - 0x30], 0xf5dda814
mov dword [ebp - 0x2c], 0x9938e2b9
add dword [ebp - 0x2c], 0xa8337ebc
mov dword [ebp - 0x28], 0xb4ab9912
add dword [ebp - 0x28], 0xaec3d35a
mov dword [ebp - 0x24], 0xe8af9dc4
add dword [ebp - 0x24], 0x1750623c
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x33daeebf
sub eax, 0x23d6ee8f
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x41112
push 0
call eax
mov ecx, 0x3194
xor esi, esi
add esi, eax
mov edi, 0x2c6d21ea
sub edi, 0x1c67b3ea
add edi, dword [ebp - 0x20]
mov ebx, 0xa7fb0eee
add ebx, 0xd91e7734
xor dword [ebp - 8], 0x41b20a4f
mov edx, dword [edi]
add dword [ebp - 0x10], 0xb63db2e2
xor edx, ebx
xor dword [ebp - 0x18], 0x5dc22720
mov dword [esi], edx
sub dword [ebp - 0xc], 0xbfd48f26
add esi, 0xc1f2623b
sub esi, 0xc1f26237
add edi, 0xd5e19572
add edi, 0x2a1e6a92
loop 0x1002fe3d
add eax, 0x9dffaf04
add eax, 0x62010a1f
mov ebx, eax
add eax, 0x161c80c0
sub eax, 0x161c80bb
mov ecx, 0xb3751bbb
sub ecx, 0xa3751bbb
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
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_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1002fd10
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
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 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.1002fd10
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1002fd10
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4030c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x477020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403160
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403140
xor eax, eax
push ebp
push 0x403139
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40317c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403140
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x477020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x477020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47904c], 0
je 0x403e8d
cmp word [0x479220], 0xd7b2
jne 0x403e55
cmp dword [0x479228], 0
jbe 0x403e55
mov eax, 0x47921c
call dword [0x479238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403eb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x477030], 0
jne 0x403ea9
push 0
push 0x477064
push 0x47706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406028
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40608e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404218
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c8c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406078
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406095
lea eax, [ebp - 0x10]
call fcn.00403fa8
ret

Function at 0x408990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404468
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4089a9
test al, 0x10
jne 0x4089ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b860
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b899
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404098
jmp 0x40b8a2
mov eax, ebx
mov edx, esi
call fcn.00403ffc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8ac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b8cd
mov al, byte [esp]
jmp 0x40b8cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bdcc
mov eax, dword [0x478438]
cmp byte [eax], 0
je 0x40bfd0
mov eax, dword [0x478218]
call fcn.00402abc
call fcn.004028cc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408f10
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c018
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c006
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4781b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x479668]
call fcn.0040553c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret