joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5758d0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x59ebc8]
test eax, eax
je 0x575905
mov ecx, dword [eax]
test ecx, ecx
je 0x575968
add eax, 4
xor edi, edi
nop
cmp byte [ecx], 1
sbb edi, 0
inc edi
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x5758f0
jmp 0x575994
mov esi, dword [0x59ec00]
test esi, esi
jne 0x575932
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x59ec00], esi
test esi, esi
jne 0x575932
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.00574b3c
mov esi, dword [0x59ec00]
mov dword [esp], esi
call fcn.00566fdc
test eax, eax
je 0x57596c
xor ebx, ebx
xor edi, edi
mov ebp, esi
nop word cs:[eax + eax]
lea ebx, [eax + ebx + 1]
inc edi
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
call fcn.00566fdc
test eax, eax
jne 0x575950
inc ebx
jmp 0x575973
xor edi, edi
jmp 0x575994
mov ebx, 1
xor edi, edi
mov dword [esp], ebx
call fcn.0056379c
mov dword [0x59ebc4], eax
test eax, eax
je 0x5759ed
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00566cac
lea eax, [edi + 4]
mov dword [0x59ebcc], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.00563780
mov esi, eax
test esi, esi
je 0x5759ed
mov edi, dword [0x59ebc8]
test edi, edi
je 0x5759f1
mov edx, dword [edi]
test edx, edx
je 0x575a2a
lea eax, [edi + 4]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edx], 0
je 0x5759e0
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x5759e1
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x5759d0
jmp 0x575a26
xor eax, eax
jmp 0x575a3d
mov ebx, dword [0x59ebc4]
mov dword [esp], ebx
call fcn.00566fdc
test eax, eax
je 0x575a32
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.00566fdc
add ebp, 4
test eax, eax
jne 0x575a10
test edi, edi
je 0x575a32
mov dword [esp], edi
call fcn.005637ac
mov dword [0x59ebc8], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5760f0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 8], esi
cmp ebx, 1
jne 0x576151
mov eax, dword [0x59ec44]
lea ecx, [eax + 1]
mov dword [0x59ec44], ecx
test eax, eax
jne 0x576151
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x59ec04], eax
sub esp, 0xc
push dword [esi + 0x44]
call fcn.00568138
add esp, 8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00575ec8
add esp, 0x10
push ebp
push ebx
push edi
push dword [esi + 0x18]
call fcn.00576f7c
mov esi, eax
test ebx, ebx
jne 0x5761a4
dec dword [0x59ec44]
jne 0x5761a4
sub esp, 0xc
push edi
call fcn.00574d3c
add esp, 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00575ec8
add esp, 0x10
mov eax, dword [0x59ec04]
test eax, eax
je 0x5761a4
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
add esp, 0xc
mov dword [0x59ec04], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x57657c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x59ec54
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x5a2104]
cmp eax, 0x232
jl 0x5765e6
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.00566e90
mov dword [esp], edi
call fcn.00574b3c
mov eax, dword [0x5a2104]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x59ec54]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x5a2104]
lea ecx, [eax + 1]
mov dword [0x5a2104], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x59ec54]
mov dword [esi], eax
mov dword [esp], 0x59ec54
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x57662c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.00566e90
mov dword [esp], esi
call fcn.00574b3c
add esp, 0x58
pop esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40d08b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40d09a
pop dword [ebp - 0x14]
mov eax, 0x40d09a
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3484a
push 0
mov eax, 0x1a7ad35f
sub eax, 0x1a39f287
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x584d1aa6
sub ecx, 0x584ce585
xor edx, edx
add edx, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x14]
mov edi, 0x90ce396c
sub edi, 0x66ffcc26
xor dword [ebp - 0x10], esi
mov esi, dword [ebx]
mov dword [ebp - 0x10], 0x2d15ef7
sub esi, edi
sub dword [ebp - 4], edx
mov dword [edx], esi
add edx, 0x3aa066a1
add edx, 0xc55f9963
add ebx, 0xc7e83a27
sub ebx, 0xc7e83a23
loop 0x40d0f0
add eax, 0x606ecab6
add eax, 0x9f91fca1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x45bb5bba
sub ecx, 0x457b5bba
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x405850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
div ch
call 0x9e9859e7
dec esp
test edx, eax
Function at 0x409940
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [esi], 0xc
in al, dx
sal byte [ebp + 0x2d], 0xd5
inc ebp
wait
mov ebx, 0xfa04
push ebx
xchg ebx, eax
ror byte [eax], 0x68
add byte [ecx], 0x41
add byte [edi - 0x3efbea01], bl
inc eax
or byte [ebx], bl
les ecx, [eax*4 - 0x74e9d740]
dec ebp
or al, 0xbb
push es
add byte [eax], al
add byte [esi - 0x39], ah
inc ecx
dec esi
pop esp
add byte [ecx + 0xb6e84c], ah
test eax, eax
jne 0x409996
push eax
dec ebp
push 0x6a004101
add eax, ebp
mov dh, 0x19
xchg edi, eax
outsd dx, dword [esi]
dec ebx
les ecx, [ebx]
xchg ecx, eax
inc ecx
cmc
test eax, eax
je 0x4099ce
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
neg ecx
push edx
pop ss
push ebp
and al, 0x1b
leave
push 0xffffffffffffffd9
and edx, dword [ebx]
lea edx, [ebp - 8]
neg edi
push ecx
lea ecx, [ebp - 0xc]
mov bh, 0xff
and edi, ecx
push esi
invalid
push 1
sbb edx, dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebx, 6
jne 0x4099e6
mov edx, dword [ebp + 0xc]
invalid
xor ecx, ecx
cmp eax, ecx
jne 0x412ca1
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x572087ba]
inc eax
add byte [eax + 0x60], ch
pushfd
inc eax
add byte [edx - 0x17afadf9], cl
idiv dword [ebx - 0x4c160001]
add byte [eax], al
add byte [esi - 8], bh
add dword [ebp + 0x57], esi
xor dword [eax + 6], edx
inc ecx
add byte [ebx], bh
ret 0x1c0a
Function at 0x402570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.00403960
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
lea eax, [ebp - 0x3a988]
mov edi, 0x346
mov dword [ebp - 0x3a9a4], ecx
add esp, 0xc
sub edi, eax
nop dword [eax]
mov al, cl
lea esi, [ebp - 0x3a988]
mov ebx, ecx
and al, 0x4e
add esi, ecx
shr ebx, 9
or bl, al
mov edx, ecx
mov al, byte [ebp - 0x3a9a4]
shr ecx, 5
and al, 0x40
or cl, al
shr edx, 8
mov eax, dword [ebp - 0x3a9a4]
xor bl, cl
lea ecx, [edi + esi]
movsx eax, al
shr ecx, 0xd
and cl, dl
movsx ecx, cl
imul ecx, eax
and cl, 0x84
xor bl, cl
mov ecx, dword [ebp - 0x3a9a4]
mov al, cl
and al, 0x21
or al, dl
xor bl, al
mov al, cl
or al, 0xbb
inc ecx
xor bl, al
mov dword [ebp - 0x3a9a4], ecx
mov byte [esi], bl
cmp ecx, 0x3a980
jb 0x402610
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9c0], 0x3a980
mov dword [ebp - 0x3a9c4], eax
lea eax, [ebp - 0x3a9c4]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9bc], 0
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cb1
mov esp, ebp
pop ebp
ret
Function at 0x402880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c40
call fcn.00403960
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
lea esi, [ebx + 0xd]
nop dword [eax + eax]
mov eax, ebx
shr eax, 9
lea ecx, [eax*8 - 1]
add ecx, eax
mov eax, ebx
shr eax, cl
movsx eax, al
xor eax, 1
cdq
idiv esi
movsx eax, bl
movsx ecx, dl
imul ecx, eax
mov byte [ebp + ebx - 0x50c08], cl
inc ebx
cmp ebx, 0x50bfe
jb 0x402910
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cb1
mov esp, ebp
pop ebp
ret
Function at 0x4034e1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403520
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403520
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403520
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403520
cmp dword [ecx + 0x74], 0xe
jbe 0x403520
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000ec86
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x1000eca0
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1000ec93
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1000f8cb
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1000f8d7
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1000f8ff
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1000f8e5
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10019029
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10019038
pop dword [ebp - 0x10]
mov eax, 0x10019038
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x44271202
sub dword [ebp - 0x20], 0xf5d4ccb7
mov dword [ebp - 0x1c], 0x210f3899
add dword [ebp - 0x1c], 0x112413ac
mov dword [ebp - 0x18], 0xc31cbd91
sub dword [ebp - 0x18], 0x76d07963
mov dword [ebp - 0x14], 0xa9ae857b
add dword [ebp - 0x14], 0x56517a85
lea eax, [ebp - 0x20]
push eax
mov eax, 0xd017a185
sub eax, 0xc0153089
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x826c3f69
sub dword [ebp - 0x20], 0xdf9d613
mov dword [ebp - 0x1c], 0x292dcfef
sub dword [ebp - 0x1c], 0xe7c16e7a
mov dword [ebp - 0x18], 0xc488e294
add dword [ebp - 0x18], 0x9ee689d8
mov dword [ebp - 0x14], 0xfcf8bf2d
sub dword [ebp - 0x14], 0xfcf8bf2d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x5bdcb083
sub eax, 0x4bda405b
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3e99e
push 0
call eax
mov ecx, 0x4d12
xor esi, esi
add esi, eax
mov edx, 0xf63e95cb
sub edx, 0xe63a79cb
add edx, dword [ebp - 0x10]
mov edi, 0x7c7d7eb3
sub edi, 0xec6cff6c
xor dword [ebp - 8], edi
mov ebx, dword [edx]
xor ebx, edi
mov dword [esi], ebx
sub dword [ebp - 4], 0x835e7e64
add esi, 4
add edx, 4
loop 0x10019151
add eax, 0xd4398658
sub eax, 0xd4385f3d
xor ebx, ebx
add ebx, eax
add eax, 0x49dcaaeb
sub eax, 0x49dcaae6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x100079a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100079af
pop dword [ebp - 0xc]
mov eax, 0x33e0707e
sub eax, 0x23dff6cf
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc60d0646
sub dword [ebp - 0x1c], 0x77bac0fb
mov dword [ebp - 0x18], 0x44ead44b
sub dword [ebp - 0x18], 0x12b78806
mov dword [ebp - 0x14], 0x96a83d6a
sub dword [ebp - 0x14], 0x4a5bf93c
mov dword [ebp - 0x10], 0xe4956237
sub dword [ebp - 0x10], 0xe4956237
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xfd64f7f9
sub dword [ebp - 0x1c], 0x88f28ea3
mov dword [ebp - 0x18], 0x23f4e880
sub dword [ebp - 0x18], 0xe288870b
mov dword [ebp - 0x14], 0x2c8a3ca0
add dword [ebp - 0x14], 0x36e52fcc
mov dword [ebp - 0x10], 0x53812863
sub dword [ebp - 0x10], 0x53812863
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x46f9a
push 0
call eax
mov ecx, 0x8efacd14
add ecx, 0x71057a0b
mov esi, eax
mov edx, 0x253b0e4e
sub edx, 0x1535904e
add edx, dword [ebp - 0xc]
mov edi, 0x9667de08
add dword [ebp - 8], 0xa30cd5a0
mov ebx, dword [edx]
add dword [ebp - 4], eax
xor ebx, edi
mov dword [ebp - 4], 0x14c18469
mov dword [esi], ebx
add dword [ebp - 8], ebx
add esi, 0x30a951a0
sub esi, 0x30a9519c
add edx, 0x72d1a371
sub edx, 0x72d1a36d
loop 0x10007ac1
add eax, 0xece6bd83
add eax, 0x131a51cc
xor ebx, ebx
add ebx, eax
add eax, 0xd72c3cc3
add eax, 0x28d3c342
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
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.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
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 0x1003475d
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.1003af70
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 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100079a0
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.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
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 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
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.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
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 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.100079a0
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
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 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
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 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.100079a0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x4012f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0xfffffc19
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0xc], 0
jle 0x4013d9
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402740
add esp, 0xc
push 0
push 0x8000080
push 3
push 0
push 3
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40137b
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4013d9
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4013bb
mov dword [ebp - 0x14], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4013d9
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
je 0x4013cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x4013d9
cmp dword [ebp - 0x18], 0xffffffff
je 0x4013e9
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x401540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0xfffffc19
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
jle 0x401641
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4015b4
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x401641
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 2
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4015ed
mov dword [ebp - 0x14], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x401641
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401619
mov dword [ebp - 0x14], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
je 0x401633
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x40163a
mov dword [ebp - 0x14], 0
jmp 0x401641
cmp dword [ebp - 0x18], 0xffffffff
je 0x401651
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x402730
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4422a0]
jne 0x40273a
repz ret
jmp fcn.00404edc