joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44c9cc]
push ebx
push esi
push eax
mov esi, ecx
call dword [sym.imp.kernel32.dll_TlsGetValue]
push 0x7d
push esi
mov ebx, eax
call fcn.00405d55
xor ecx, ecx
lea edx, [edi + 0x20c]
add esp, 8
mov word [eax + 2], cx
mov dword [ebp - 0x2a4], edx
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4020e6
push 0x7b
push esi
call fcn.00405d55
push eax
push 0x415670
lea edx, [ebp - 0x98]
push 0x41
push edx
call fcn.00405d7c
mov esi, dword [sym.imp.kernel32.dll_DeviceIoControl]
add esp, 0x18
push 0
lea eax, [ebp - 0x2a8]
push eax
push 0x298
lea ecx, [ebp - 0x2a0]
push ecx
push 0x298
mov edx, ecx
push edx
push 0x220040
push ebx
call esi
test eax, eax
je 0x4021d5
cmp dword [ebp - 0x12], 0
jne 0x4021d5
lea eax, [ebp - 0x98]
lea edx, [edi + 4]
mov ecx, eax
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402160
push 0
lea edx, [ebp - 0x2a8]
push edx
push 0x22c
lea eax, [edi + 0x414]
push eax
push 0x298
lea ecx, [ebp - 0x2a0]
push ecx
push 0x22001c
push ebx
call esi
test eax, eax
je 0x4021d5
cmp word [edi + 0x438], 0
lea edx, [edi + 0x438]
jne 0x4021c3
mov eax, dword [ebp - 0x2a4]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4021b4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret

Function at 0x4021f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
jmp 0x402210
movzx ecx, word [eax + 0x415690]
mov word [ebp + eax - 0x98], cx
add eax, 2
test cx, cx
jne 0x402210
push 0
lea eax, [ebp - 0x2a4]
push eax
mov eax, dword [0x44c9cc]
push 0x298
lea ecx, [ebp - 0x2a0]
push ecx
push 0x298
mov edx, ecx
push edx
push 0x220040
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x40228f
mov eax, dword [ebp - 0x12]
test eax, eax
jne 0x402294
lea ecx, [ebp - 0x98]
mov edx, ecx
sub esi, edx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x402271
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x402340
Capabilities:
Allocate or change rwx memory
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x40
push 0x3000
push 0x298
push 0
mov dword [ebp - 0xc], 0x298
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4023e3
mov eax, dword [0x44c9cc]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4023a3
push eax
push eax
push 3
push eax
push eax
push eax
push 0x415658
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4023cd
mov ecx, dword [0x44c9cc]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 8
lea eax, [ebp - 0x10]
push eax
push 0x220060
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x4023dc
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x4023dc
mov ecx, dword [ebp - 0x10]
push 0x298
push ecx
call dword [sym.imp.kernel32.dll_VirtualLock]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x4023ee
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea edx, [ebx + 0x208]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4023f7
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ax, word [edx]
mov edx, dword [0x44c9cc]
push edi
push 0
mov ecx, 0x41
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 8]
push ecx
push 0x298
push ebx
push 0x298
push ebx
push 0x220028
push edx
mov word [ebx + 0x296], ax
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
pop edi
mov esi, 1
test eax, eax
je 0x40245d
mov esi, dword [ebx + 0x28e]
push ebx
call fcn.00403820
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402470
Capabilities:
Allocate or change rwx memory
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x40
push 0x3000
push 0x298
push 0
mov dword [ebp - 0xc], 0x298
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402515
mov eax, dword [0x44c9cc]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4024d3
push eax
push eax
push 3
push eax
push eax
push eax
push 0x415658
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4024fd
mov ecx, dword [0x44c9cc]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 8
lea eax, [ebp - 0x10]
push eax
push 0x220060
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x40250c
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x40250c
mov ecx, dword [ebp - 0x10]
push 0x298
push ecx
call dword [sym.imp.kernel32.dll_VirtualLock]
mov edx, dword [ebp - 0x10]
mov ebx, edx
test edx, edx
jne 0x402520
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
add edx, 0x208
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x402530
mov eax, dword [0x44c9cc]
mov esi, dword [ebp + 0xc]
push edi
push 0
lea edx, [ebp - 8]
push edx
push 0x298
push ebx
push 0x298
push ebx
push 0x22002c
mov ecx, 0x41
mov edi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
pop edi
mov esi, 1
test eax, eax
je 0x402588
mov esi, dword [ebx + 0x28e]
push ebx
call fcn.00403820
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
lea edx, [ebp - 0x98]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4025c0
mov edx, dword [0x44c9cc]
push 0
lea eax, [ebp - 0x2a4]
push eax
push 0x22c
push edi
push 0x298
lea ecx, [ebp - 0x2a0]
push ecx
push 0x22001c
push edx
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x40261a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
cmp word [edi + 0x24], 0
lea edx, [edi + 0x24]
jne 0x40263f
mov eax, esi
sub edx, esi
jmp 0x402630
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402630
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x12]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x402e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
mov esi, dword [eax + 8]
push edi
xor ebx, ebx
push ebx
push esi
push ebx
push ebx
call fcn.0040f2a0
mov edi, eax
mov ecx, eax
or ecx, edx
jne 0x402e92
xor edx, edx
mov eax, 0x200
div esi
test edx, edx
jne 0x402e92
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov edi, 0x200
mov dword [ebp - 4], eax
jmp 0x402ec4
xor edx, edx
mov ebx, edi
neg ebx
adc edx, edx
neg edx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edx
add edi, 0x200
mov eax, edi
xor edx, edx
div esi
mov dword [ebp - 0x10], ebx
sub esi, edx
add edi, esi
push edi
call fcn.00405e86
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add esp, 4
cmp dword [ebp - 4], 0
jne 0x402ed1
mov esi, 9
jmp 0x402f14
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x402ef3
mov esi, 0xf
jmp 0x402f11
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
push 0
lea edx, [ebp + 8]
push edx
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
neg eax
sbb esi, esi
and esi, 0xfffffff1
add esi, 0xf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp ecx, eax
je 0x402f40
test esi, esi
jne 0x402f31
add ecx, dword [ebp - 8]
push 0x200
push ecx
push eax
call fcn.0040cb70
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.00405e4c
mov eax, dword [ebp + 0xc]
add esp, 4
test esi, esi
jne 0x402f9c
mov ecx, 0xaa55
cmp word [eax + 0x1fe], cx
je 0x402f5c
lea eax, [esi + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 2]
cmp ecx, 0x10eb9090
je 0x402f7b
cmp ecx, 0x20b60251
je 0x402f7b
mov eax, 0x15
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0xe]
mov edi, dword [eax + 0x12]
mov ecx, dword [ebp + 0x10]
movzx eax, word [eax + 8]
shld edi, edx, 9
shl edx, 9
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov ecx, dword [ebp + 0x14]
shl eax, 9
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035d0
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10dc
call fcn.0040d120
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1018
mov esi, ecx
push 0
push esi
mov dword [ebp - 0x1040], esi
call fcn.0040b800
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80100000
push 0x415700
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1044], edi
cmp edi, 0xffffffff
jne 0x403641
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.kernel32.dll_DeviceIoControl]
push 0
lea eax, [ebp - 0x103c]
push eax
push 0x90
lea ecx, [ebp - 0x10d8]
push ecx
push 0
push 0
push 0x70048
push edi
call ebx
test eax, eax
je 0x4036e4
mov edx, dword [ebp - 0x10c0]
mov eax, dword [ebp - 0x10c8]
mov ecx, dword [ebp - 0x10c4]
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
push 0
lea eax, [ebp - 0x103c]
push eax
push 0xc
lea ecx, [ebp - 0x1014]
push ecx
push 0
push 0
push 0x2d1080
push edi
call ebx
push 0
test eax, eax
je 0x403766
mov eax, dword [ebp - 0x1010]
mov edx, dword [ebp - 0x100c]
push eax
mov dword [esi + 4], 1
mov dword [esi], 0
mov dword [esi + 8], edx
mov dword [esi + 0x18], eax
call fcn.00402650
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
xor esi, esi
jmp 0x403801
push 0
lea edx, [ebp - 0x103c]
push edx
push 0x20
lea eax, [ebp - 0x1038]
push eax
push 0
push 0
push 0x74004
push edi
call ebx
test eax, eax
je 0x403726
mov ecx, dword [ebp - 0x1024]
mov edx, dword [ebp - 0x1030]
mov eax, dword [ebp - 0x102c]
mov dword [esi + 4], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
jmp 0x403687
push 0
lea ecx, [ebp - 0x103c]
push ecx
push 8
lea edx, [esi + 0x10]
push edx
push 0
push 0
push 0x7405c
push edi
mov dword [esi + 4], 0
call ebx
test eax, eax
jne 0x403687
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x103c]
push eax
push 0x1000
lea ecx, [ebp - 0x1008]
push ecx
push 0
push 0
push 0x560000
push edi
call ebx
test eax, eax
je 0x4037fc
mov eax, dword [ebp - 0x1008]
xor ebx, ebx
test eax, eax
je 0x4037ea
add esi, 0x28
lea edi, [ebp - 0xff8]
mov edi, edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, dword [edi - 8]
mov dword [esi], edx
mov edx, dword [edi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0xc]
push 0
push eax
mov dword [esi - 0x10], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
call fcn.00402650
mov dword [esi - 8], eax
mov eax, dword [ebp - 0x1008]
mov dword [esi - 4], edx
inc ebx
add esp, 8
add edi, 0x18
add esi, 0x20
cmp ebx, eax
jb 0x4037a0
mov edi, dword [ebp - 0x1044]
mov esi, dword [ebp - 0x1040]
xor edx, edx
cmp eax, 1
setne dl
mov dword [esi + 4], eax
inc edx
mov dword [esi], edx
xor esi, esi
jmp 0x403801
mov esi, 0xf
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x403820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x44c9cc]
sub esp, 0x20
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x403860
push eax
push eax
push 3
push eax
push eax
push eax
push 0x415658
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40388a
mov ecx, dword [0x44c9cc]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 4
lea eax, [ebp + 8]
push eax
push 0x220064
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x4038c8
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x4038c8
mov edx, dword [ebp + 8]
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.kernel32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x4038c8
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x20], eax
jne 0x4038cb
cmp dword [ebp - 0x1c], eax
jne 0x4038cb
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4038c0
mov byte [eax], 0
inc eax
dec ecx
jne 0x4038b3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.kernel32.dll_VirtualUnlock]
mov eax, dword [ebp + 8]
push 0x8000
push 0
push eax
call dword [sym.imp.kernel32.dll_VirtualFree]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x18]
push 0
push esi
push edi
push ebx
call fcn.0040f2a0
mov ecx, eax
or eax, edx
jne 0x403b2e
mov eax, dword [ebp + 0x10]
xor edx, edx
div esi
test edx, edx
jne 0x403b2e
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x10]
jmp 0x403b5a
mov edx, dword [ebp + 0x10]
mov eax, ecx
xor ecx, ecx
sub ebx, eax
sbb edi, ecx
mov dword [ebp - 4], edi
lea edi, [eax + edx]
mov dword [ebp + 0x18], eax
mov eax, edi
xor edx, edx
div esi
mov dword [ebp - 8], ebx
sub esi, edx
add edi, esi
push edi
call fcn.00405e86
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x403b63
lea esi, [ebx + 9]
jmp 0x403ba5
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x403b88
mov esi, 0xf
jmp 0x403ba5
mov ecx, dword [esi]
push 0
lea eax, [ebp + 8]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0xf
mov eax, dword [ebp + 0xc]
cmp ebx, eax
je 0x403bcd
test esi, esi
jne 0x403bc4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push edx
lea edx, [ebx + ecx]
push edx
push eax
call fcn.0040cb70
add esp, 0xc
push ebx
call fcn.00405e4c
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403be0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [eax + 8]
push 0
push edi
push esi
push ebx
call fcn.0040f2a0
mov ecx, eax
or eax, edx
jne 0x403c1e
mov eax, dword [ebp + 0x10]
xor edx, edx
div edi
test edx, edx
jne 0x403c1e
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x403c4a
mov edx, dword [ebp + 0x10]
mov eax, ecx
xor ecx, ecx
sub ebx, eax
sbb esi, ecx
mov dword [ebp - 4], esi
lea esi, [eax + edx]
mov dword [ebp + 0x18], eax
mov eax, esi
xor edx, edx
div edi
mov dword [ebp - 8], ebx
sub edi, edx
add esi, edi
push esi
call fcn.00405e86
add esp, 4
mov edi, eax
test edi, edi
jne 0x403c56
lea esi, [edi + 9]
jmp 0x403ce9
push 0
lea eax, [ebp - 4]
push eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x403c78
mov esi, 0xf
jmp 0x403ce9
push 0
cmp edi, dword [ebp + 0xc]
je 0x403cce
mov eax, dword [ebx]
lea edx, [ebp + 8]
push edx
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403c97
lea esi, [eax + 0xf]
jmp 0x403ce9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
push ecx
push edx
lea ecx, [edi + eax]
push ecx
call fcn.0040cb70
mov eax, dword [ebp - 8]
mov ecx, dword [ebx]
add esp, 0xc
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebx]
push 0
lea edx, [ebp + 8]
push edx
push esi
push edi
push eax
jmp 0x403cd7
mov edx, dword [ebx]
lea ecx, [ebp + 8]
push ecx
push esi
push edi
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0xf
cmp edi, dword [ebp + 0xc]
je 0x403cf7
push edi
call fcn.00405e4c
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44c9cc]
push ebx
mov ebx, dword [0x41a5a8]
push esi
push edi
mov edi, dword [0x41a5a4]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x403d4c
push eax
push eax
push 3
push eax
push eax
push eax
push 0x415658
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403d6e
mov ecx, dword [0x44c9cc]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push edi
push ebx
push 0x220020
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x403d6e
call dword [sym.imp.kernel32.dll_GetLastError]
mov eax, dword [0x41a5a8]
pop edi
pop esi
mov ecx, 0x2000
pop ebx
jmp 0x403d80
mov byte [eax], 0
inc eax
dec ecx
jne 0x403d80
mov dword [0x41a5a4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4042a0
Capabilities:
Allocate or change rwx memory
Create new key via cryptacquirecontext
Execute shellcode via indirect call
Generate random numbers via winapi
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
push 0x3000
push 0x2000
push 0
mov dword [ebp - 0x210], 0x2000
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x404313
push 0
push 0
push 8
lea eax, [ebp - 0x214]
push eax
push 0x220060
call fcn.00402020
add esp, 0x14
test eax, eax
je 0x40430d
mov ecx, dword [ebp - 0x214]
push 0x2000
push ecx
call dword [sym.imp.kernel32.dll_VirtualLock]
mov eax, dword [ebp - 0x214]
mov dword [0x41a5a8], eax
test eax, eax
jne 0x404331
mov eax, 9
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.kernel32.dll_GetCurrentThreadId]
call esi
mov edi, dword [sym.imp.user32.dll_SetWindowsHookExW]
push eax
push 0
push 0x403f00
push 7
call edi
mov dword [0x41a5a0], eax
call esi
push eax
push 0
push 0x403fc0
push 2
call edi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
mov dword [0x41a5ac], eax
call esi
test eax, eax
jne 0x404395
push 8
push 1
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x404415
mov edx, dword [ebp - 0x20c]
lea ecx, [ebp - 0x208]
push ecx
push 0x200
push edx
call dword [sym.imp.advapi32.dll_CryptGenRandom]
mov eax, dword [0x41a5a4]
xor esi, esi
jmp 0x4043c0
mov cl, byte [ebp + esi - 0x208]
mov edx, dword [0x41a5a8]
mov byte [eax + edx], cl
inc eax
mov dword [0x41a5a4], eax
cmp eax, 0x2000
jne 0x4043e7
call fcn.00403d00
mov eax, dword [0x41a5a4]
inc esi
cmp esi, 0x200
jl 0x4043c0
mov ecx, 0x200
lea eax, [ebp - 0x208]
jmp 0x404400
mov byte [eax], 0
inc eax
dec ecx
jne 0x404400
mov eax, dword [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
call fcn.00404070
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00405c9f
mov esp, ebp
pop ebp
ret

Function at 0x404430
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404445
sub ecx, edi
sar ecx, 1
lea edx, [ecx + ecx]
mov ecx, esi
test edx, edx
je 0x404467
lea ecx, [ecx]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x404460
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404470
pop edi
sub ecx, esi
pop esi
je 0x404487
lea ecx, [ecx]
mov byte [eax], 0
inc eax
dec ecx
jne 0x404480
ret
Function at 0x404490
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404544
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x404534
push edi
lea ecx, [esi + 1]
push ecx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x404533
push 0
lea edx, [ebp - 4]
push edx
push esi
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x404522
cmp dword [ebp - 4], esi
jne 0x404522
push edi
push eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], edi
mov dword [ecx], esi
mov dword [ebp - 8], 1
pop edi
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4047e0
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_FindFirstVolumeW]
mov dword [ebp - 0x850], eax
cmp eax, 0xffffffff
je 0x4048d8
lea edi, [ebp - 0x850]
lea ecx, [ebp - 0x210]
call fcn.004020a0
test eax, eax
je 0x40483f
mov ecx, edi
push ecx
call fcn.004022b0
add esp, 4
test eax, eax
jne 0x4048d8
mov ebx, dword [sym.imp.kernel32.dll_FindNextVolumeW]
jmp 0x404850
mov eax, dword [0x44c9c4]
mov edi, eax
imul edi, edi, 0x640
inc eax
push 0x104
lea edx, [ebp - 0x210]
mov dword [0x44c9c4], eax
mov eax, dword [ebp - 0x850]
push edx
add edi, 0x41a9c0
mov ecx, 0x190
lea esi, [ebp - 0x850]
push eax
rep movsd dword es:[edi], dword [esi]
call ebx
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
je 0x4048cb
lea edi, [ebp - 0x850]
lea ecx, [ebp - 0x210]
call fcn.004020a0
test eax, eax
je 0x404850
mov ecx, edi
push ecx
call fcn.004022b0
add esp, 4
test eax, eax
je 0x404850
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x850]
push edx
call dword [sym.imp.kernel32.dll_FindVolumeClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret