joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push str.wtqx
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x403200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and dword [ecx], 0x40
mov eax, dword [0x410b78]
mov ecx, dword [edx]
movsb byte es:[edi], byte [esi]
or eax, dword [ecx]
push ebx
mov edx, dword [ebx - 0x40]
or eax, dword [ecx]
push esi
push edi
cmpsd dword [esi], dword es:[edi]
cmp eax, 0x410bc4
inc edx
pop edx
invalid

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push edi
push edx
mov dword [esi + 0x24], eax
mov dword [esi - 0x2b], ecx
call 0x40f1d0
mov eax, dword [esi - 0x2d]
push 0
push ax
bnd jle 0x406773
add bh, ch
add esp, 0x18
pop edi
pop esi
mov al, 0x54
nop
nop
nop
inc ecx
nop
nop
nop
add byte [eax - 0x13f6aa70], dl
push ebx
mov ebx, dword [ebp + 7]
and edx, dword [edi + 0x6a]
push eax
push ebx
imul ecx, edi, 0x8bddffe2
jne 0x40679c
mov edi, eax
xor eax, eax
mov edx, edi
ret 0x14
add byte [esi], dl
add ch, dl
cmp bl, dh
cmpsb byte [esi], byte es:[edi]
aad 0x16
mov dword [edx], ebx
mov eax, dword [esi]
jp 0x4067b3
push ecx
lea ebp, [edi - 0x7400001e]
xchg esp, eax
xor eax, eax
mov edx, edi
mov ecx, 0x9a0000a9
rep stosd dword es:[edi], eax
loop 0x4067c6
push 0x3c
mov dword [eax + 0x2f], edx
mov ecx, dword [esi]
push cs
mov edx, dword [ecx + 0x10]
mov dword [edx], ebx
mov edx, esp
mov ecx, dword [eax]
push ecx
call 0xff4d4a60
mov edi, eax
xor ebp, dword [ecx - 0x75]
push ebp
mov ecx, 0xf50e
rep stosd dword es:[edi], eax
mov ecx, dword [edx + ebp*2]
push ebx
push 0xffffffffffffff9e
mov dword [eax + 0x14], edx
mov eax, dword [ebx - 0x76ebae83]
and al, 0x8b
push es
js 0x406838
xor al, 1
add ch, bl
add byte [ebx + 0x48c1830e], cl
push ecx
call fcn.00406010
pop edi
pop esi
pop ebx
pop ebp
ret
push ecx
nop
nop
nop
nop
nop
insd dword es:[edi], dx
nop
push ebp
mov ebp, esp
pop esi
in al, dx
or byte [edx], al
in al, dx
add byte [esi - 0x75], bl
pop ebp
or byte [esi + 0x10], dl
mov eax, dword [ebx + 4]
cmp eax, 0x15
je 0x406f39
mov ecx, dword [ebx + 0x10]
test ecx, ecx
pop ds
test byte [ecx - 0x74ff9805], cl
jne 0x4068b9
mov ecx, dword [esi + 0x14]
invalid
pop ebp
ret 0x5054
mov eax, ecx
aaa
int3
Function at 0x40b080
Capabilities:
Read file on windows

Disassembly:
inc ebp
or byte [eax], al
add byte [eax], al
add byte [ebx - 0x17afa7bd], cl
xchg edi, eax
jmp [edi + 0x5f2e948b]
cmc
mov esi, dword [edx]
push esi
jl 0x40b0fb
or byte [edi - 0x75], dl
jge 0x40b09b
mov edx, dword [eax + 0x1f]
mov ecx, dword [esi - 0x2d]
or eax, ecx
mov dword [ebp - 0x3e], 0xc1003e
jne 0x40b0d8
cmp al, 0x8a
inc esi
loopne 0x40b024
mov al, byte [esi - 0x20]
test byte [edx], dh
je 0x40b10d
xor dh, byte [edx + ebp*2 + 0x10]
push esi
add al, 0x8d
dec ebp
or byte [edx], ch
add byte [ecx + 0x6a], dl
out 0x6a, al
add byte [edx], ch
adc byte [esi + 4], dl
lea ecx, [ebp + 8]
sub al, byte [eax]
push ecx
push 0xffffffffffffffe6
push 0
push 0
adc al, 0xff
adc eax, sym.imp.KERNEL32.dll_PeekNamedPipe
pop eax
jne 0x40b117
mov esi, dword [0xedc298]
call esi
test eax, eax
jne 0x40b0d2
add al, 0x4d
xchg ebp, eax
sbb dword [esi - 0x40], 1
pop ebp
ret
call esi
add eax, 0xafc80
cmp eax, 0xafced
add byte [0xafced], bh
jne 0x40b11d
dec ebp
jle 0x40b0f4
add dword [ebx - 0x1ebb275], ecx
pop esi
mov dword [ecx], 0x300000
pop ebp
ret
or byte [ebp - 0x74f18a40], al
push ebp
invalid
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40b137
mov cl, byte [esi + 8]
test cl, cl
fsub dword [edi - 0x75]
dec esi
clc
mov dword [ecx], esp
or byte [ebx + 0x568b8e46], cl
push esp
mov ecx, 0xaabc0020
call fcn.0040b810
mov edx, dword [esi + 0xc]
mov dword [eax], ebp
or al, 0x8b
stosd dword es:[edi], eax
xchg esp, eax
mov eax, dword [esi + 0xc]
mov ebp, dword [ebx + 0xc468b94]
and al, 0x8d
dec ebp
adc byte [eax - 0x75], dl
inc esi
add al, 0x51
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test ebx, edx
je 0x40b15a
xor eax, eax
jmp 0x40b285
mov edi, dword [0x40c037]
call edi
mov edx, 0x1b840fa3
add dword [ebx - 0x2228004b], esp
and byte [edi], 0xa
add byte [0x450b4b65], bh
jne 0x40b24f
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add dword [esi + 0x14], ecx
mov eax, dword [esi - 0x1c]
test esi, esi
jl 0x40b1a2
jg 0x40b192
cmpsd dword [esi], dword es:[edi]
sal byte [esi + 0x6a], 0x6a
add byte [eax - 0x18], ch
add eax, dword [eax]
add byte [ecx + 0x50], dl
push 0
push 0x3e8
push ecx
push eax
out dx, eax
lock add eax, dword [eax]
add bl, ch
or eax, 0xf8837823
and edi, dword [eax - 0x7d]
clc
push dword [ebp + 4]
xchg esi, eax
shl byte [ecx], 2
mov dword [0xc4e8be3], eax
push eax
mov edx, dword [ecx + 8]
push edx
invalid
cmp eax, 0xafced
jne 0x40b268
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
sbb al, 0x5f
mov eax, 0x1117e
mov dword [ecx], edx
pop esi
pop ebp
ret
cmp eax, 0xeb0afca6
jne 0x40b281
mov ecx, dword [ebp + 0x14]
invalid
test eax, eax
jne 0x40b2bd
push ebx
dec ebp
adc byte [ebp - 0x74ed8a37], al
dec ebp
adc al, 0x8b
push ebp
adc byte [ebx + 0x5f], bl
mov eax, 0x1117e
mov dword [ecx], edx
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x29]
pop ebx
pop edi
mov dword [ecx], edx
pop esi
pop ebp
ret
Function at 0x402da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442c66
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x452064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x402e4c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x402e4c
call fcn.00402190
mov edi, eax
jmp 0x402f6b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402e6f
call fcn.00402190
jmp 0x402f5e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x402e8d
call fcn.00402190
jmp 0x402f5e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x402eae
mov edi, 0x8007000e
jmp 0x402f60
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x402fa4
jb 0x402ecc
cmp eax, 0xffffffff
ja 0x402fa4
cmp eax, 0x400
jbe 0x402ee1
push eax
lea ecx, [ebp - 0x418]
call fcn.00402010
jmp 0x402f07
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x402f07
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x402f1e
mov edi, 0x8007000e
jmp 0x402f60
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x402f3e
call fcn.00402190
jmp 0x402f5e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00402c00
mov edi, eax
test esi, esi
je 0x402f6b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x402f84
lea ecx, [ebp - 0x418]
call fcn.004023d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004087ff
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004021d0
int3
Function at 0x4068e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406939
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406939
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40692a
cmp esi, edx
jae 0x406939
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406918
cmp esi, edx
jae 0x406939
cmp word [esi], 0
je 0x406939
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42dd91
Capabilities:
Set environment variable

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

Function at 0x42dd9c
Capabilities:
Set environment variable

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

Function at 0x42ed73
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042eafa
Function at 0x401160
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
xor esi, esi
nop word [eax + eax]
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xab
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x46
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xbe
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x64
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x44
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x2b
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xae
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x16
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x51
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x6d
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xa0
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xb4
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xb8
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xd
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x6e
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x35
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xa4
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 6
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x3c
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0xaa
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xa7
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xb4
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x19
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xf
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x8e
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x96
push 0
push 0
push 0
call edi
xor byte [esi + section..BsS], 0x67
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0x87
push 0
push 0
push 0
call edi
add byte [esi + section..BsS], 0xee
inc esi
cmp esi, 0x2d200
jb 0x401170
pop edi
pop esi
ret
Function at 0x4018c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
clc
jae 0x4018e4
call 0x63d144
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4018f2
call 0x3dcb7d42
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x447200], eax
stc
jb 0x401910
jmp 0xe848840e
push 8
call fcn.0040271b
add esp, 4
mov esi, eax
push 4
call fcn.0040271b
add esp, 4
lea edi, [esi + 4]
mov dword [eax], 0x4018b0
push edi
push 0
push eax
push 0x401c70
push 0
push 0
call fcn.0040555f
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x401a2b
cmp dword [edi], 0
je 0x401a38
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x401a3f
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040230e
add esp, 0xc
test eax, eax
jne 0x401a46
push 0xc
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [ebp - 0x10], 0x422e28f6
mov dword [ebp - 0xc], 0x440762a0
mov dword [ebp - 8], 0x3f443958
call fcn.0040271b
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push 0xc
push eax
push edi
lea esi, [edi + 0xc]
call fcn.00403610
add esp, 0xc
xor dl, dl
mov ebx, edi
cmp edi, esi
je 0x4019e9
movss xmm1, dword [0x415b5c]
movss xmm0, dword [ebx]
mov cl, dl
comiss xmm0, xmm1
lea eax, [ecx + 1]
movzx edx, al
movzx eax, cl
cmovbe edx, eax
add ebx, 4
cmp ebx, esi
jne 0x4019c3
cmp dl, 5
jbe 0x4019e9
or ebx, 0xffffffff
jmp 0x4019eb
xor ebx, ebx
test edi, edi
je 0x401a18
sub esi, edi
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x401a0e
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x401a4d
mov edi, ecx
push esi
push edi
call fcn.0040274b
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040270d
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.004020b0
push 1
call fcn.004020b0
push 5
call fcn.004020b0
push 2
call fcn.004020b0
call fcn.0040590c
int3

Function at 0x402cd6
Capabilities:
Parse pe header

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

Function at 0x407a04
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsAlloc
push 0x1e
call fcn.00407885
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a38
push dword [ebp + 8]
mov ecx, esi
call dword [0x410140]
call esi
jmp 0x407a3e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40a305
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40a37d
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40a35e
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40a35b
cmp ecx, 0x5c
je 0x40a35b
cmp ecx, 0x2f
jne 0x40a368
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40a348
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40a37f
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a680
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40a6bc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x40af51
Capabilities:
Hash data using sha1

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

Function at 0x40c4b0
Capabilities:
Hash data with md5

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

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

Disassembly:
push edi
push dword [0x4175f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40cf89
push esi
push dword [0x4175ec]
push 8
push dword [0x416fec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4175f0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4175e8]
jmp 0x40cf79
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40cf77
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40cf67
push edi
push 0x40cec6
call fcn.00411a02
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x40dea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x416168]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40dec4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x40df12
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x417700]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40dff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x416168]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40e340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x416168]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x411a02
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x417658], 0
push ebx
push esi
mov esi, 0x417660
jne 0x411a2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x417678], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x417658], 1
push dword [0x417678]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x411acb
push 0x14
push 8
push dword [0x416fec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x411af5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41765c]
test eax, eax
je 0x411a70
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x41765c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x411afa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x417678]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x416fec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x411af5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
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 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret