joyce8/EMBER2024-capa huggingface dataset:
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 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x401029
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.0041766c
xor ebp, ebp
pop ecx
test eax, eax
je 0x401076
push str.Windows_original_main_args:_n
call fcn.00401104
pop ecx
mov esi, ebp
call fcn.0040e687
cmp dword [eax], ebp
jle 0x401076
call fcn.0040e68d
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00401104
add esp, 0xc
inc esi
call fcn.0040e687
cmp esi, dword [eax]
jl 0x401054
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.0040120f
call fcn.00401277
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call fcn.00401127
pop ecx
pop ecx
mov esi, eax
call fcn.0040127d
mov edx, ebp
test ebx, ebx
jle 0x4010b0
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, ebx
jl 0x4010a5
mov edi, dword [0x431004]
mov dword [esi + edx*4], ebp
test edi, edi
jne 0x4010bf
mov edi, dword [esi]
mov edx, dword [section..data]
test edx, edx
jne 0x4010cb
mov edx, dword [esi]
mov ecx, dword [0x431990]
test ecx, ecx
push ebp
push ebp
push 1
setne al
movzx eax, al
push eax
push edi
push edx
push 0x42526c
push 0x425270
push dword [0x431994]
push 1
push ecx
push 1
push esi
push ebx
call fcn.00401d57
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4042f7
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.0041766c
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x40446a
jg 0x404326
test esi, esi
jb 0x40446a
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.00417558
add esp, 0xc
test eax, eax
js 0x40446a
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x404388
push edi
call fcn.00404879
pop ecx
test eax, eax
je 0x40437f
push ebx
push esi
push edi
push ebp
call fcn.0041766c
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x40446f
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.0041766c
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x40446a
jg 0x4043b1
cmp ebp, ebx
jb 0x40446a
mov ecx, 0x10015
cmp eax, ebx
jg 0x4043c6
jl 0x4043c0
cmp ebp, ecx
jae 0x4043c6
mov esi, ebp
mov ecx, eax
jmp 0x4043ca
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.0041766c
add esp, 0x10
cmp edx, ebx
jl 0x40446a
jg 0x4043f0
cmp eax, ebx
jb 0x40446a
push 0x10015
call fcn.0041766c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40446a
push esi
push ebx
push dword [esp + 0x24]
call fcn.00417558
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x404463
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x40445f
cmp byte [esi], 0x50
jne 0x40445e
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x40445e
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x404476
dec esi
cmp esi, ebx
jae 0x40441f
push ebx
call fcn.0041766c
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.0040a130
push ebx
call fcn.0041766c
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.00404879
add esp, 0x14
test eax, eax
je 0x4044b6
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.0041766c
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x40446f
Function at 0x405f5b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [sym.imp.advapi32.dll_RegEnumKeyA]
push esi
push edi
push 0x104
mov dword [esp + 0x18], eax
xor edi, edi
lea eax, [esp + 0x20]
xor esi, esi
push eax
push edi
push ebx
call ebp
test eax, eax
jne 0x40602e
mov eax, dword [esp + 0x14]
inc esi
push dword [eax + 8]
lea eax, [esp + 0x20]
push eax
call fcn.00406371
pop ecx
pop ecx
test eax, eax
je 0x405fe6
test edi, edi
je 0x405fd9
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004063e4
pop ecx
pop ecx
test eax, eax
jle 0x405fe6
push edi
call fcn.00401149
pop ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004011b7
pop ecx
mov edi, eax
push 0x104
lea eax, [esp + 0x20]
push eax
push esi
push ebx
call ebp
test eax, eax
je 0x405fa5
test edi, edi
je 0x40602e
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push 0x20019
push ebp
push edi
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
mov esi, eax
call fcn.00401149
pop ecx
test esi, esi
je 0x406049
cmp dword [esp + 0x10], ebp
je 0x40602e
push dword [esp + 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004097a8
add esp, 0x114
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push eax
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push str.JavaHome
push dword [esp + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x40601e
cmp dword [esp + 0x10], ebp
je 0x406080
push dword [esp + 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
push eax
call fcn.004011b7
pop ecx
jmp 0x406030
Function at 0x406af2
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push ecx
push ebx
push esi
push 0x10
call fcn.004069ad
mov esi, eax
push 8
mov dword [esp + 0x10], esi
call fcn.00401127
pop ecx
pop ecx
push 0x431a38
push dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x406b3b
push ebx
call fcn.00401149
push esi
call fcn.004068fd
pop ecx
pop ecx
xor eax, eax
jmp 0x406c3a
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], 0x431a64
push edi
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x406b53
and dword [ebx + 4], 0
jmp 0x406b6c
push 0x431a38
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, 0x431a64
test ebp, ebp
je 0x406c1e
push ebp
call fcn.0040e970
pop ecx
cmp eax, 4
jl 0x406b46
cmp byte [eax + ebp - 4], 0x2e
jne 0x406b46
lea edi, [eax - 3]
add edi, ebp
push 0x426a78
push edi
call fcn.00413d40
pop ecx
pop ecx
test eax, eax
je 0x406bae
push 0x426a7c
push edi
call fcn.00413d40
pop ecx
pop ecx
test eax, eax
jne 0x406b46
push 0x3b
push ebp
call fcn.0040bd30
pop ecx
pop ecx
test eax, eax
jne 0x406b46
push dword [esp + 0x1c]
call fcn.0040e970
push ebp
mov edi, eax
call fcn.0040e970
mov esi, eax
lea ecx, [esi + edi]
push ecx
call fcn.00401127
lea ecx, [edi - 1]
mov ebx, eax
push ecx
push dword [esp + 0x2c]
push ebx
call fcn.0040a130
lea ecx, [esi + 1]
push ecx
lea eax, [edi - 1]
add eax, ebx
push ebp
push eax
call fcn.0040a130
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
inc eax
push eax
push esi
call fcn.004067c9
mov ecx, dword [esi + 4]
add esp, 0x2c
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [esi + 4]
mov ebx, dword [esp + 0x14]
jmp 0x406b46
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00401149
push ebx
call fcn.00401149
pop ecx
pop ecx
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.00401a1c
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x40473d]
lea edx, [fcn.00401a80]
sub eax, edx
push eax
push fcn.00401a80
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401329
push edi
call fcn.00401905
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401953
mov eax, edi
add eax, 0x1c800
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
xor eax, edi
push eax
lea eax, [0x4060e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a80
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x401a1c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x1000b3c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1000b4c7
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp dword [0x100a08b4], 0
mov dword [0x100a08bc], eax
jne 0x1000b41f
cmp al, 3
jne 0x1000b3f6
test eax, 0x80000000
je 0x1000b3f6
push 2
call fcn.1000c420
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000b41f
push str.IsTNT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000b41f
push 1
call fcn.1000c420
add esp, 4
call fcn.1000b950
test eax, eax
jne 0x1000b42d
xor eax, eax
ret 0xc
xor edx, edx
mov ecx, dword [0x100a08bc]
mov dl, ch
mov eax, ecx
shr ecx, 0x10
and eax, 0xff
mov dword [0x100a08c8], edx
mov dword [0x100a08c4], eax
shl eax, 8
mov dword [0x100a08bc], ecx
add eax, edx
mov dword [0x100a08c0], eax
call fcn.1000b780
test eax, eax
jne 0x1000b46f
call fcn.1000b990
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10092084], eax
call fcn.1000c290
cmp dword [0x10092084], 0
mov dword [0x100a08a4], eax
je 0x1000b4b8
test eax, eax
je 0x1000b4b8
call fcn.1000b9d0
call fcn.1000c280
call fcn.1000bd00
call fcn.1000bc10
call fcn.1000b620
mov eax, 1
inc dword [0x100a08a0]
ret 0xc
call fcn.1000b7e0
call fcn.1000b990
xor eax, eax
ret 0xc
test eax, eax
jne 0x1000b504
mov eax, dword [0x100a08a0]
test eax, eax
jle 0x1000b4ff
dec eax
cmp dword [0x100a08f4], 0
mov dword [0x100a08a0], eax
jne 0x1000b4e8
call fcn.1000b670
call fcn.1000bbb0
call fcn.1000b7e0
call fcn.1000b990
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x1000b513
push 0
call fcn.1000b8a0
add esp, 4
mov eax, 1
ret 0xc

Function at 0x1000b680
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.1000b740
cmp dword [0x100a08f8], 1
mov esi, dword [esp + 0x10]
jne 0x1000b6a3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100a08f4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x100a08f0], bl
jne 0x1000b6fd
cmp dword [0x1009207c], 0
je 0x1000b6eb
mov edi, dword [0x10092078]
sub edi, 4
cmp edi, dword [0x1009207c]
jb 0x1000b6eb
mov eax, dword [edi]
test eax, eax
je 0x1000b6e0
call eax
sub edi, 4
cmp edi, dword [0x1009207c]
jae 0x1000b6d8
push 0x1009f01c
push 0x1009f014
call fcn.1000b760
add esp, 8
push 0x1009f024
push 0x1009f020
call fcn.1000b760
add esp, 8
test ebx, ebx
je 0x1000b71c
call fcn.1000b750
pop edi
pop esi
pop ebx
ret
mov dword [0x100a08f8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000b780
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1000c670
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100a08fc], eax
cmp eax, 0xffffffff
jne 0x1000b79a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.1000c880
add esp, 8
mov esi, eax
test esi, esi
je 0x1000b7dc
push esi
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000b7dc
push esi
call fcn.1000b810
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1000b830
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1000b893
push 0x74
push 1
call fcn.1000c880
add esp, 8
mov edi, eax
test edi, edi
je 0x1000b889
push edi
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000b889
push edi
call fcn.1000b810
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x1000b893
push 0x10
call fcn.1000b5e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1000b8a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x100a08fc], 0xffffffff
push esi
je 0x1000b93f
mov esi, dword [esp + 8]
test esi, esi
jne 0x1000b8c8
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1000b931
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1000b8d8
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1000b8e8
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1000b8f8
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000b908
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1000b918
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1000b928
push eax
call fcn.1000c930
add esp, 4
push esi
call fcn.1000c930
add esp, 4
push 0
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x1000c290
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x100a0b4c], ebx
jne 0x1000c2df
call esi
cmp eax, ebx
mov edi, eax
je 0x1000c2bd
mov dword [0x100a0b4c], 1
jmp 0x1000c2df
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x1000c2d5
mov dword [0x100a0b4c], 2
jmp 0x1000c2df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x100a0b4c], 1
jne 0x1000c38e
test edi, edi
jne 0x1000c302
call esi
mov edi, eax
test edi, edi
jne 0x1000c302
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x1000c31c
add esi, 2
cmp word [esi], 0
jne 0x1000c30a
add esi, 2
cmp word [esi], 0
jne 0x1000c30a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1000c37d
push ebp
call fcn.1000d100
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x1000c37d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000c36c
push ebx
call fcn.1000c930
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x100a0b4c], 2
jne 0x1000c412
test ebx, ebx
jne 0x1000c3b1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x1000c3b1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x1000c3c6
inc ebp
cmp byte [ebp], 0
jne 0x1000c3b8
inc ebp
cmp byte [ebp], 0
jne 0x1000c3b8
sub ebp, ebx
inc ebp
push ebp
call fcn.1000d100
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x1000c3eb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x1000c470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x100a0b50
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x1000c497
add eax, 8
inc ecx
cmp eax, 0x100a0be0
jb 0x1000c488
cmp dword [ecx*8 + 0x100a0b50], edx
lea ebx, [ecx*8]
jne 0x1000c65b
cmp dword [0x100a08b0], 1
je 0x1000c617
cmp dword [0x100a08b0], 0
jne 0x1000c4ce
cmp dword [0x100a08b4], 1
je 0x1000c617
cmp edx, 0xfc
je 0x1000c65b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x1000c50b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1000c54f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x1009eac0
push ebp
call fcn.1000d270
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1009eaa0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x100a0b54]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1000d1d0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x10091f70], 0
je 0x1000c62d
mov eax, dword [0x10091f70]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x1000c637
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x100a0b54]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret