joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43982d
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x46d670
call fcn.004411da
push 0x476dac
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.00438ffd
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x439877
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.00465da1
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.00416934
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.0044b01d
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x439948
push edi
call fcn.00453216
pop ecx
test eax, eax
je 0x4398cb
push 0x133
jmp 0x43994d
push edi
call fcn.004531ea
pop ecx
test eax, eax
jne 0x4398dd
push 0x13b
jmp 0x43994d
push ebx
push esi
call fcn.0043a0b4
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.00416905
test esi, esi
je 0x43992b
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x439922
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407e86
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.00440d30
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x43993f
push edi
call fcn.00465da1
pop ecx
mov eax, dword [ebp + 8]
call fcn.004411a8
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.004104a2
push 0x48a1c8
lea eax, [ebp - 0x38]
push eax
call fcn.00442f9e
int3

Function at 0x43a0ef
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x46d7e3
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x494334]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x244]
lea eax, [ebp + 0x30]
push eax
xor edi, edi
mov dword [ebp - 0x10], esi
push edi
push edi
push 0x2c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x10]
push 0xc8
push eax
push edi
call fcn.004324ec
add esp, 0x10
lea eax, [ebp + 0x30]
lea ecx, [ebp]
push eax
call fcn.004181e7
push dword [0x4942d0]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0042dd48
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00438711
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.004083be
lea ecx, [ebp]
call fcn.004083be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.0044119a
add ebp, 0x23c
leave
ret
Function at 0x43f08c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x477e18]
sub edx, 1
jne 0x43f093
ret

Function at 0x441cd5
Capabilities:
Parse pe header

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

Function at 0x459ac0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00459936

Function at 0x45fd87
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045fa04

Function at 0x465ed0
Capabilities:
Parse pe header

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
nop
mov ecx, 0x35f71140
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0xc293460
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
jne 0x401012
mov eax, 1
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401026
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x40a2a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x40104b
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x401059
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x401070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 2
jne 0x401082
mov eax, 2
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401096
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x40a2a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x4010bb
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x4010c9
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4010e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 3
jne 0x4010f2
mov eax, 3
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401106
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x40a2a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x40112b
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x401139
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x401150
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40115f
xor eax, eax
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401173
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x40a2a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, 0x10000
je 0x401198
push 0
push 0
push 0xc0000025
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, 0x20000
je 0x4011a6
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 8

Function at 0x401580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.00401666
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40159b
call fcn.004069f7
call fcn.0040180d
mov eax, dword [esi + 0x10]
push dword [eax + 0x44]
call fcn.004013e0
mov ecx, dword [esi + 0x10]
mov edi, eax
cmp dword [ecx + 0x44], 0
jne 0x4015bb
push 1
call fcn.0040181f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401a13
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40a928
push 0x40a920
push 0x40a928
push 0x1f
call fcn.0040194e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401a47
push dword [ebp + 8]
mov ecx, esi
call dword [0x40a134]
call esi
jmp 0x401a4d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x401a91
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40a94c
push 0x40a944
push 0x40a94c
push 0x21
call fcn.0040194e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401ac8
push dword [ebp + 8]
mov ecx, esi
call dword [0x40a134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x401ad0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40a960
push 0x40a958
push 0x40a960
push 0x22
call fcn.0040194e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401b0a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40a134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4039c4
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40206c
Capabilities:
Allocate or change rwx memory

Disassembly:
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x404080]
or dl, 1
imul edx, eax
mov eax, dword [0x404080]
sub eax, edx
mov ebx, esi
mov edx, eax
mov eax, 0x404084
call fcn.00401fe6
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
jmp 0x4020ea
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
jmp 0x402010
or al, 0x40
mov edi, 0x40389b
push eax
sub edi, fcn.00403045
push edi
push fcn.00403045
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402129
mov eax, fcn.00403045
mov ebx, esi
mov edx, edi
call fcn.00401fe6
mov edx, 0x1c000
mov eax, 0x404084
mov ebx, esi
call fcn.00402630
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.00402bb7
lea edx, [esi + 0x1c000]
add edx, esi
lea eax, [esi - 1]
lea ebx, [ebp - 2]
and eax, 0x404084
call fcn.00403045
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x401340
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp], 0x208
call fcn.00408590
mov ebx, eax
call sub.KERNEL32.dll_GetCommandLineW
test eax, eax
jne 0x401369
test ebx, ebx
jne 0x401387
jmp 0x4013f1
cmp word [eax], 0x22
jne 0x401397
add eax, 2
mov dword [ebx], eax
jmp 0x401379
add eax, 2
mov dx, word [eax]
cmp dx, 0x22
je 0x4013ac
test dx, dx
jne 0x401376
mov dword [esp], ebx
xor ebx, ebx
call fcn.00408560
jmp 0x4013f1
mov edx, ebx
jmp 0x4013eb
mov dword [ebx], eax
jmp 0x40139e
add eax, 2
mov dx, word [eax]
cmp dx, 0x20
ja 0x40139b
test dx, dx
je 0x401393
mov word [eax], 0
add eax, 2
jmp 0x401393
add eax, 2
mov cx, word [eax]
lea esi, [ecx - 1]
cmp si, 0x1f
jbe 0x4013b6
test cx, cx
je 0x4013f1
mov dword [edx + 4], eax
jmp 0x4013d2
add eax, 2
mov cx, word [eax]
cmp cx, 0x20
ja 0x4013cf
test cx, cx
je 0x4013e8
mov word [eax], 0
add eax, 2
add edx, 4
cmp word [eax], 0
jne 0x4013b9
mov eax, dword [ebx + 4]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4013f4
mov eax, dword [0x40a040]
xor esi, esi
mov dword [ebp - 0x1c], eax
shl eax, 3
mov dword [esp], eax
call fcn.00408590
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
mov edi, eax
jmp 0x401449
cmp esi, 2
jne 0x401426
mov si, 4
mov eax, ecx
cdq
idiv ebx
mov ebx, dword [esi*8 + 0x40a028]
mov eax, edx
xor ebx, eax
cdq
mov dword [edi + ecx*8], ebx
mov eax, dword [esi*8 + 0x40a02c]
inc esi
xor eax, edx
mov dword [edi + ecx*8 + 4], eax
inc ecx
cmp ecx, dword [ebp - 0x1c]
lea ebx, [ecx + 8]
jl 0x40141d
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
shl esi, 2
mov dword [esp], esi
call fcn.00408590
xor edx, edx
jmp 0x40146d
mov cl, byte [edi + edx*2]
mov byte [eax + edx], cl
inc edx
cmp edx, esi
jl 0x401466
mov dword [esp], eax
call fcn.00401687
test eax, eax
je 0x4014e6
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004015cc
movsx esi, byte [0x40a001]
mov edi, eax
mov al, byte [section..data]
mov byte [ebp - 0x1c], al
lea eax, [esi + 1]
mov dword [esp], eax
call fcn.00408590
movzx ecx, byte [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], ecx
jmp 0x4014c1
mov cl, byte [ebp - 0x1c]
xor cl, byte [edx + 0x40a002]
mov byte [eax + edx], cl
inc edx
cmp edx, esi
jb 0x4014b4
test edi, edi
mov byte [eax + esi], 0
je 0x4014da
mov dword [esp + 4], str.39265027
mov dword [esp], eax
call edi
test ebx, ebx
je 0x4014e6
mov dword [esp], ebx
call fcn.00408560
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x405f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x405fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x406006
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4060ab
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x406080
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x405ff9
cmp eax, 0x40
je 0x405ff9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x406030
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x406030
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00405f90
lea esi, [esi]
lea edi, [edi]
Function at 0x406320
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00406300
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x406356
jmp 0x4063a6
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x406353
cmp dl, 0x20
je 0x406353
cmp dl, 0x22
je 0x4063f0
cmp dl, 9
mov eax, edx
je 0x406394
cmp dl, 0x20
je 0x406398
test dl, dl
jne 0x40638a
lea esi, [esi]
jmp 0x4063a6
cmp al, 0x20
je 0x406398
test al, al
je 0x4063a6
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x406382
cmp al, 0x20
jne 0x40640a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x406398
cmp al, 0x20
je 0x406398
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x4063b5
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004014f2
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x4063fe
cmp al, 0x22
jne 0x4063f0
cmp al, 0x22
jne 0x406394
add ebx, 1
movzx eax, byte [ebx]
jmp 0x406394
cmp al, 9
je 0x406398
nop
jmp 0x4063a6

Function at 0x406760
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x406794
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x42305c], eax
call fcn.004074d0
test eax, eax
sete al
movzx eax, al
mov dword [0x41bc44], eax
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
movzx eax, al
mov dword [0x41bc44], eax
leave
ret
Function at 0x4068b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x4068dc
mov dword [0x423058], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x4069a1
mov eax, dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 0xc], ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x4069c0
cmp edi, 5
je 0x4069c5
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x406966
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
cmp eax, 7
mov edi, eax
je 0x4069c5
cmp eax, 8
jne 0x4069c0
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x41bc44]
test eax, eax
js 0x4069b4
test eax, eax
je 0x4068d0
mov eax, dword [0x42305c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x4068d6
call sub.KERNEL32.dll_GetLastError
jmp 0x4068d6
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x4068f1
call fcn.004067b0
mov eax, dword [0x41bc44]
jmp 0x406973
mov edi, 2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406bd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41bc44]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x406cbd
test eax, eax
jne 0x406c51
mov eax, dword [0x423058]
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x406c44
lea esi, [ebp - 0x20]
jmp 0x406c04
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x406c3b
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x406c80
cmp eax, 8
jne 0x406cb0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x406c01
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x42305c]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x406bf2
mov eax, dword [ebp - 0x20]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.00406820
cmp eax, 7
jne 0x406c49
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.004069d0
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004067b0
mov eax, dword [0x41bc44]
jmp 0x406be9

Function at 0x406cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x406d00
mov dword [esp], ebx
call fcn.00406bd0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41bc44]
test eax, eax
js 0x406d60
test eax, eax
jne 0x406d30
mov eax, dword [0x423058]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.004068b0
cmp eax, 7
je 0x406d70
call sub.msvcrt.dll_abort
nop
mov edi, dword [0x42305c]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x406d12
call fcn.004067b0
mov eax, dword [0x41bc44]
jmp 0x406d09
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.004069d0
lea esi, [esi]