joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00432150
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x434669
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.0042f4e0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0042f4d0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00433cc0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4893d4]
push 0
lea ecx, [esp + 0x4c]
call fcn.00480878
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0044a970
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00431b70
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4890f4]
mov ecx, ebx
call fcn.0042f450
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x434734
push edi
mov ecx, esi
call fcn.00431c80
push eax
push ebp
mov ecx, esi
call fcn.00431e40
cmp eax, dword [esp + 0x40]
jg 0x434730
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x43470e
mov eax, ebx
jmp 0x43473a
cmp edi, ebx
jl 0x434738
mov eax, ebx
jmp 0x43473a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x43474b
mov dword [esp + 0x30], eax
jmp 0x434756
cmp edi, ebx
jl 0x434751
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.0042f410
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x43479d
push edi
mov ecx, esi
call fcn.00431ba0
push eax
push ebx
mov ecx, esi
call fcn.00431f70
cmp eax, dword [esp + 0x44]
jg 0x434795
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x43476f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4347a7
cmp edi, ebp
jl 0x4347a1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4347a7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x4347b0
mov ecx, eax
jmp 0x4347b9
cmp edi, ebp
jl 0x4347b6
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00431b90
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004808ea
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x43a730
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4872e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43a769
inc eax
mov dword [esi + 0x10], eax
jmp 0x43a87c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43a77d
mov eax, 0xffffffc7
jmp 0x43a87e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43a78e
cmp dword [esi + 8], eax
jne 0x43a77d
cmp dword [esi + 8], eax
jne 0x43a7a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43a7a7
mov eax, 0xffffffc7
jmp 0x43a87e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43a7bb
push eax
mov ecx, ebx
call fcn.00439f60
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0040d030
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43a7ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0040d050
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004396d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43a81f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x641000
call fcn.0040d230
mov eax, dword [esp + 0x38]
jmp 0x43a87e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043a590
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43a863
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043a5b0
mov esi, eax
test esi, esi
jne 0x43a893
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043a590
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43a835
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x641000
call fcn.0040d230
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x641000
call fcn.0040d230
mov eax, esi
jmp 0x43a87e
Function at 0x44b010
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x487bd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4893d4]
push 0
lea ecx, [esp + 0x20]
call fcn.00480878
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044a970
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004807a6
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0047d067
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0047d067
push 1
push 0
push 0
mov ecx, esi
call fcn.0047d00f
push 1
push 0
push 1
mov ecx, esi
call fcn.0047d00f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004808ea
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44b190
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x487bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00480878
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044a970
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004807a6
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4893d4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44b254
cmp dword [esp + 0x40], 1
jne 0x44b252
cmp ecx, eax
jge 0x44b254
mov eax, ecx
cmp eax, 0xc8
jge 0x44b260
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044b010
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4893d8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004808ea
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44ba60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x487ca3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047b488
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x642a90
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x6429d8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4890bc]
push eax
mov ecx, edi
call fcn.00480b20
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048203c
test eax, eax
je 0x44bb7c
mov ecx, dword [esp + 0x3c]
call fcn.00480b4d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4893ac]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44bb40
push edi
mov ecx, esi
call fcn.0047e1b5
mov ecx, esi
call fcn.0044bd20
cmp dword [esp + 0x38], 1
jne 0x44bb75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047e2f0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x44dd70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44dda3
push esi
call fcn.0045c130
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44dd9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44de29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44de12
mov eax, dword [esi + 8]
test eax, eax
je 0x44ddc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44de0e
cmp eax, 2
je 0x44de12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44ddba
cmp eax, 3
je 0x44dded
cmp eax, 1
jne 0x44ddba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44ddba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44ddba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044de50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44de38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044de50
add esp, 4
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40288e
pop dword [ebp - 0x50]
mov eax, 0xb31b9894
sub eax, 0xb2db7006
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xf775192a
add dword [ebp - 0x60], 0x56dd2c21
mov dword [ebp - 0x5c], 0xd11984c9
add dword [ebp - 0x5c], 0x6119c77c
mov dword [ebp - 0x58], 0x363f22cb
add dword [ebp - 0x58], 0x160d2163
mov dword [ebp - 0x54], 0x4b72ee33
sub dword [ebp - 0x54], 0x4b72ee33
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x65bb3379
sub dword [ebp - 0x60], 0xf148ca23
mov dword [ebp - 0x5c], 0xc36c7f07
sub dword [ebp - 0x5c], 0x82001d92
mov dword [ebp - 0x58], 0x9501b9fc
sub dword [ebp - 0x58], 0x31924d90
mov dword [ebp - 0x54], 0xa24227d3
sub dword [ebp - 0x54], 0xa24227d3
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x55179c5
add eax, 0xfaeef6e3
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x32ebe
push 0
call eax
mov ecx, 0xdbe20a17
sub ecx, 0xdbe1d0ca
mov edi, eax
mov ebx, 0x7a757918
add ebx, 0x85cb86e8
add ebx, dword [ebp - 0x50]
mov edx, 0xb158e1e8
sub edx, 0x910e2d28
mov esi, dword [ebx]
sub dword [ebp - 0x18], 0xb7aa6074
xor esi, edx
add dword [ebp - 0x3c], 0xf092b84a
mov dword [edi], esi
xor dword [ebp - 0x24], eax
add edi, 0x1d24e464
add edi, 0xe2db1ba0
add ebx, 0xf982ce1a
sub ebx, 0xf982ce16
loop 0x4029ab
add eax, 0xcd985aeb
sub eax, 0xcd9782e4
mov ebx, eax
add eax, 0x12061b76
add eax, 0xedf9e48f
mov ecx, 0x2b594cd6
add ecx, 0xd4e6b32a
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x1000e613
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e652
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e652
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e652
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e652
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e652
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100112cf
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 0x1001136c
push ebx
push esi
call fcn.10011298
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.1001122c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011319
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001136b
push edi
push eax
call fcn.1001228a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011339
call fcn.1000fd74
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001136a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001122c
add esp, 0x20
test eax, eax
jne 0x10011358
push edi
call fcn.1000fd74
jmp 0x10011360
push ebx
call fcn.1000fd74
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 0x100115d9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018888
push 0x10018880
push str.FlsAlloc
push 0x1f
call fcn.100114f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001160d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
jmp 0x10011613
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011657
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018898
push 0x10018890
push str.FlsGetValue
push 0x21
call fcn.100114f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001168e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011696
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100188a0
push 0x10018898
push str.FlsSetValue
push 0x22
call fcn.100114f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100116d0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10016d50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10016d7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10016d7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401040
Capabilities:
Initialize winsock library
Set console window title

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push str.TFTP_Server_V1.03
call edi
test eax, eax
je 0x4011dc
mov esi, 1
push esi
push section..text
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x4011dc
xor ebx, ebx
push str.TFTP_Server_V1.04_n
mov dword [0x40d894], ebx
mov dword [0x40d890], ebx
mov byte [0x40d8a8], bl
call fcn.00401d00
add esp, 4
push str._n_n
call fcn.00401d00
add esp, 4
push str.Usage_:_tftpsrv__w___p___dRootDirectory__n
call fcn.00401d00
add esp, 4
push str._tw____:_enable_write_accesses_n
call fcn.00401d00
add esp, 4
push str._tp____:_protocol_server_actions_n
call fcn.00401d00
add esp, 4
push str._td____:_define_a_root_directory_n_n
call fcn.00401d00
mov eax, dword [esp + 0x1b8]
add esp, 4
cmp eax, esi
jle 0x401157
mov ecx, dword [esp + 0x1b8]
lea ebx, [eax - 1]
lea ebp, [ecx + 4]
mov edx, dword [ebp]
movsx eax, byte [edx]
push eax
call fcn.00401d60
add esp, 4
cmp eax, 0x64
je 0x401120
cmp eax, 0x70
je 0x401118
cmp eax, 0x77
jne 0x401149
mov dword [0x40d894], esi
jmp 0x401149
mov dword [0x40d890], esi
jmp 0x401149
mov edi, dword [ebp]
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40d8a8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
add ebp, 4
dec ebx
jne 0x4010f2
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor ebx, ebx
lea eax, [esp + 0x20]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
cmp eax, ebx
jne 0x4011dc
push ebx
push 2
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x40d89c], eax
je 0x4011dc
push 0x45
mov word [esp + 0x14], 2
mov dword [esp + 0x18], ebx
call sub.WSOCK32.dll_htons
mov edx, dword [0x40d89c]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
mov word [esp + 0x1e], ax
call sub.WSOCK32.dll_bind
cmp eax, ebx
jne 0x4011dc
cmp dword [0x40d894], ebx
je 0x4011bb
push str.TFTP_Server_V1.03__read_write_
jmp 0x4011c0
push str.TFTP_Server_V1.03__readonly_
call edi
push str.TFTP_Server_successful_started_n
call fcn.00401d00
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
Function at 0x401ef0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.00403bd0
mov esi, eax
add esp, 8
test esi, esi
je 0x401f4f
push esi
call fcn.00403a90
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
push esi
push 4
push esi
push 0x401f70
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x401f47
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x401f6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00402070
add esp, 4
test edi, edi
je 0x401f65
push edi
call fcn.00403990
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x402710
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409010
push 0x404138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40da64], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40da60], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40da5c], ecx
shr eax, 0x10
mov dword [0x40da58], eax
call fcn.00404210
test eax, eax
jne 0x40277a
push 0x1c
call fcn.00402840
add esp, 4
call fcn.00403a30
test eax, eax
jne 0x40278d
push 0x10
call fcn.00402840
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405e70
call fcn.00405e60
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ef44], eax
call fcn.00405a00
mov dword [0x40d9ac], eax
test eax, eax
je 0x4027c0
mov eax, dword [0x40ef44]
test eax, eax
jne 0x4027ca
push 0xffffffffffffffff
call fcn.00403cb0
add esp, 4
call fcn.00405750
call fcn.00405660
call fcn.00403c80
mov eax, dword [0x40da74]
mov dword [0x40da78], eax
push eax
mov eax, dword [0x40da6c]
push eax
mov ecx, dword [0x40da68]
push ecx
call fcn.00401c90
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00403cb0
jmp 0x402825
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403a30
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00402870
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x40abd0], eax
je 0x403a88
push 0x74
push 1
call fcn.00403bd0
mov esi, eax
add esp, 8
test esi, esi
je 0x403a88
mov eax, dword [0x40abd0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x403a88
push esi
call fcn.00403a90
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret