joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002620
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001250
call fcn.010027bc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100265b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100265b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002673
cmp eax, 0x20b
je 0x1002660
mov dword [ebp - 0x1c], edi
jmp 0x1002687
cmp dword [ecx + 0x84], 0xe
jbe 0x100265b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002681
cmp dword [ecx + 0x74], 0xe
jbe 0x100265b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1006310], 0xffffffff
or dword [0x1006314], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10062a4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10062a0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1006318], eax
call fcn.010027b8
cmp dword [0x1006028], edi
jne 0x10026e2
push fcn.010027b8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010027a6
push 0x100116c
push 0x1001168
call sub.msvcrt.dll__initterm
mov eax, dword [0x100629c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1006298]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x1001164
push 0x1001160
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002093
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002759
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100278e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010027f5
ret
Function at 0x1003040
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret 4

Function at 0x1003200
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x100333b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x1003310
test eax, eax
jne 0x1003310
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x1003250
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x100333b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x1003310
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc
Function at 0x10035c0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 0x30]
mov eax, edx
and eax, 0x3f
mov ebx, 0x40
sub ebx, eax
cmp ebx, 8
push edi
ja 0x10035e2
add ebx, 0x40
lea ecx, [ebx - 6]
mov ebp, ecx
shr ecx, 2
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x2c]
mov eax, edx
shl ecx, 3
shr eax, 0x1d
or ecx, eax
mov dword [esp + 0x10], ecx
lea ecx, [edx*8]
push 2
lea edx, [esp + 0x14]
push edx
lea eax, [esp + ebx + 0x18]
push eax
mov byte [esp + 0x24], 0x80
mov dword [esp + 0x20], ecx
call fcn.010053c0
push ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.010034a0
mov edx, dword [esp + 0x68]
push 5
lea edi, [esi + 0x18]
push edi
push edx
call fcn.010053c0
xor eax, eax
mov dword [edi], 0x67452301
pop edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x1c], 0xefcdab89
mov dword [esi + 0x20], 0x98badcfe
mov dword [esi + 0x24], 0x10325476
mov dword [esi + 0x28], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x29e6a5c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x2eda62cb
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0xa234c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x533000]
push edi
or ebp, 0xffffffff
jmp 0xa234e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa234e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa234d8
mov eax, 1
add ebx, ebx
jne 0xa234fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa2350c
jne 0xa2351c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa2351c
dec eax
add ebx, ebx
jne 0xa23518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa234f0
xor ecx, ecx
sub eax, 3
jb 0xa23534
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa235a6
sar eax, 1
mov ebp, eax
jmp 0xa2353f
add ebx, ebx
jne 0xa2353f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xa2354c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xa23570
inc ecx
add ebx, ebx
jne 0xa2355c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa23551
jne 0xa2356d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa23551
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa23590
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa23581
jmp 0xa234de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa23590
add edi, ecx
jmp 0xa234de
pop esi
mov edi, esi
mov ecx, 0x1129
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa235ae
cmp byte [edi], 0x2f
jne 0xa235ae
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 0xa235b3
lea edi, [esi + 0x621000]
mov eax, dword [edi]
or eax, eax
je 0xa2362b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x629784]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6297c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa235e0
mov ecx, edi
jns 0xa2360f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6297c4]
or eax, eax
je 0xa23625
mov dword [ebx], eax
add ebx, 4
jmp 0xa235fd
call dword [esi + 0x6297c8]
popal
jmp 0x4068f0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1001e08a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001e0c9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001e0c9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e0c9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001e0c9
cmp dword [ecx + 0x74], 0xe
jbe 0x1001e0c9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10020a54
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 0x10020af1
push ebx
push esi
call fcn.10020a1d
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.100209b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10020a9e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10020af0
push edi
push eax
call fcn.1001f352
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10020abe
call fcn.1001f3a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10020aef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100209b1
add esp, 0x20
test eax, eax
jne 0x10020add
push edi
call fcn.1001f3a0
jmp 0x10020ae5
push ebx
call fcn.1001f3a0
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 0x10020d5e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029800
push 0x100297f8
push str.FlsAlloc
push 0x1f
call fcn.10020c7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020d92
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027154]
call esi
jmp 0x10020d98
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10020ddc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029810
push 0x10029808
push str.FlsGetValue
push 0x21
call fcn.10020c7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020e13
push dword [ebp + 8]
mov ecx, esi
call dword [0x10027154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10020e1b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10029818
push 0x10029810
push str.FlsSetValue
push 0x22
call fcn.10020c7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020e55
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10027154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10026360
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002638d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002638d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7ac06ed3
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..didat
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x63e85ffe
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax - 0x3f7c6f70], edx
add al, 0x90
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x402793
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
and dword [ebp - 4], edi
push edi
push edi
push 0x402698
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jge 0x4027b7
push 3
jmp 0x4027d6
push dword [ebp + 0x10]
push dword [ebp - 4]
push 0x4011f4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402735
add esp, 0x14
test eax, eax
jge 0x4027d7
push 0xd
pop edi
cmp dword [ebp - 4], 0
je 0x4027e6
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
leave
ret 0xc

Function at 0x4027f2
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x56c
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x530]
push edi
push eax
call fcn.00402c70
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
mov dword [ebp - 0x530], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [ebp - 0x416], 1
jne 0x40283e
inc edi
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
test edi, edi
je 0x40287b
push dword [0x40d004]
push 0x208
push eax
call fcn.00402793
mov esi, eax
test esi, esi
je 0x402883
push esi
push 0x40124c
call fcn.00403263
add esp, 8
jmp 0x402908
push dword [section..data]
jmp 0x402857
lea eax, [ebp - 0x414]
push eax
push 0x401238
call fcn.00403263
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x56c]
push 0
push eax
call fcn.00402c70
lea eax, [ebp - 0x414]
mov dword [ebp - 0x55c], eax
add esp, 0x14
lea eax, [ebp - 0x56c]
push eax
mov dword [ebp - 0x56c], edi
mov dword [ebp - 0x560], 0x40122c
mov dword [ebp - 0x550], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4028f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x401200
jmp 0x40286e
cmp dword [ebp - 0x534], 0
je 0x402908
push dword [ebp - 0x534]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00402c4f
leave
ret
Function at 0x402b45
Capabilities:
Accept command line arguments

Disassembly:
push 0xac
push 0x40b698
call fcn.0040420c
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4029dc
mov eax, 0xff
jmp 0x402b3a
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x4029f9
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x40e054], edi
mov dword [0x40e05c], eax
mov dword [0x40e060], edx
mov dword [0x40e064], esi
mov dword [0x40e058], ecx
call fcn.0040295c
mov dword [ebp - 0xb8], eax
push 1
call fcn.004041a7
pop ecx
test eax, eax
jne 0x402a48
push 0x1c
call fcn.0040292e
pop ecx
call fcn.00403fc6
test eax, eax
jne 0x402a59
push 0x10
call fcn.0040292e
pop ecx
and dword [ebp - 4], 0
call fcn.0040394c
test eax, eax
jge 0x402a6e
push 0x1b
call fcn.00402d72
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40fbfc], eax
call fcn.00403810
mov dword [0x40e044], eax
call fcn.0040371c
test eax, eax
jge 0x402a94
push 8
call fcn.00402d72
pop ecx
call fcn.004033ce
test eax, eax
jge 0x402aa5
push 9
call fcn.00402d72
pop ecx
push 1
call fcn.00402e96
pop ecx
test eax, eax
je 0x402ab8
push eax
call fcn.00402d72
pop ecx
mov eax, dword [0x40e074]
mov dword [0x40e078], eax
push eax
push dword [0x40e06c]
push dword [0x40e068]
call main
add esp, 0xc
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x402aec
push eax
call fcn.00402ff6
call fcn.0040302c
jmp 0x402b2d
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
call fcn.00404254
ret
call fcn.00404401
jmp 0x4029a8
Function at 0x40309b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x40d028]
je 0x4030c1
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x4030af
cmp esi, 0x17
jae 0x40321b
push 3
call fcn.00406122
pop ecx
cmp eax, 1
je 0x4031e5
push 3
call fcn.00406122
pop ecx
test eax, eax
jne 0x4030f4
cmp dword [0x40d008], 1
je 0x4031e5
cmp edi, 0xfc
je 0x40321b
push 0x401834
mov edi, 0x314
push edi
mov esi, 0x40e098
push esi
call fcn.004060b5
add esp, 0xc
test eax, eax
je 0x40312a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405354
add esp, 0x14
mov byte [0x40e1b5], bl
push 0x104
mov ebx, 0x40e0b1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40316d
push 0x40181c
push 0x2fb
push ebx
call fcn.004060b5
add esp, 0xc
test eax, eax
je 0x40316d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405354
add esp, 0x14
push ebx
push edi
push esi
call fcn.0040603c
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x40318b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405354
add esp, 0x14
push 0x401818
push edi
push esi
call fcn.0040603c
add esp, 0xc
test eax, eax
je 0x4031ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405354
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x40d02c]
push edi
push esi
call fcn.0040603c
add esp, 0xc
test eax, eax
je 0x4031d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405354
add esp, 0x14
push 0x12010
push 0x4017f0
push esi
call fcn.00405e95
add esp, 0xc
jmp 0x40321b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x40321b
cmp edi, 0xffffffff
je 0x40321b
mov edx, dword [esi*8 + 0x40d02c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403204
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fc6
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x401860
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x404018
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4018cc
push edi
call esi
push 0x4018c0
push edi
mov dword [0x40e4bc], eax
call esi
push 0x4018b4
push edi
mov dword [0x40e4c0], eax
call esi
push 0x4018ac
push edi
mov dword [0x40e4c4], eax
call esi
mov dword [0x40e4c8], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x40e4bc], ebx
je 0x40403e
cmp dword [0x40e4c0], ebx
je 0x40403e
cmp dword [0x40e4c4], ebx
je 0x40403e
cmp dword [0x40e4c8], ebx
jne 0x404062
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40e4c0], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40e4bc], 0x403c89
mov dword [0x40e4c4], esi
mov dword [0x40e4c8], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40d18c], eax
cmp eax, 0xffffffff
je 0x4040d5
push dword [0x40e4c0]
push eax
call esi
test eax, eax
je 0x4040d5
call fcn.00403054
push dword [0x40e4bc]
call fcn.00403b8b
push dword [0x40e4c0]
mov dword [0x40e4bc], eax
call fcn.00403b8b
push dword [0x40e4c4]
mov dword [0x40e4c0], eax
call fcn.00403b8b
push dword [0x40e4c8]
mov dword [0x40e4c4], eax
call fcn.00403b8b
add esp, 0x10
mov dword [0x40e4c8], eax
call fcn.004057a7
test eax, eax
jne 0x4040db
call fcn.00403cc6
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x403e75
push dword [0x40e4bc]
call fcn.00403c11
pop ecx
call eax
mov dword [0x40d190], eax
cmp eax, 0xffffffff
je 0x4040d0
push 0x214
push 1
call fcn.0040729d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4040d0
push esi
push dword [0x40d190]
push dword [0x40e4c4]
call fcn.00403c11
pop ecx
call eax
test eax, eax
jne 0x40412e
push esi
call fcn.00406172
pop ecx
jmp 0x4040d0
push ebx
push esi
call fcn.00403d08
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4040d7