joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473d50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x67000]
push edi
or ebp, 0xffffffff
jmp 0x473d72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x473d79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473d68
mov eax, 1
add ebx, ebx
jne 0x473d8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x473d9c
jne 0x473dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473dbb
dec eax
add ebx, ebx
jne 0x473da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x473d80
add ebx, ebx
jne 0x473db7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x473e0d
xor ecx, ecx
sub eax, 3
jb 0x473dd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x473e42
sar eax, 1
mov ebp, eax
jmp 0x473dde
add ebx, ebx
jne 0x473dde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473dac
inc ecx
add ebx, ebx
jne 0x473dec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473dac
add ebx, ebx
jne 0x473df9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x473dee
jne 0x473e0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x473dee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x473e2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x473e1e
jmp 0x473d6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x473e2c
add edi, ecx
jmp 0x473d6e
pop esi
mov edi, esi
mov ecx, 0x6c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x473e4a
cmp byte [edi], 0xb
jne 0x473e4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x473e4f
lea edi, [esi + 0x71000]
mov eax, dword [edi]
or eax, eax
je 0x473ebe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb52f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb5364]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x473e7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb536c]
or eax, eax
je 0x473eb8
mov dword [ebx], eax
add ebx, 4
jmp 0x473e99
call dword [esi + 0xb5368]
mov ebp, dword [esi + 0xb5370]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x473ef2
sub esp, 0xffffff80
jmp 0x41c474
Function at 0x40288f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
call fcn.0043318a
mov ebx, dword [eax + 4]
mov ecx, esi
call fcn.00401162
xor edi, edi
cmp dword [esi + 0xd4], edi
mov dword [ebp - 4], eax
jne 0x4029df
push 0x2c
pop ebx
push ebx
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.004150a0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 0x30], ebx
call fcn.004224f2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, esi
mov dword [esi + 0x274], eax
call fcn.00425f72
and eax, 8
mov ecx, esi
mov dword [esi + 0x278], eax
call fcn.00425f58
and eax, 0x40000
mov dword [esi + 0x27c], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x40291c
push edi
mov ecx, esi
call fcn.0042603f
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetMenu]
cmp dword [esi + 0xf4], edi
je 0x40293e
push edi
push edi
lea eax, [esi + 0xd8]
push eax
mov ecx, esi
call fcn.0042fb61
cmp dword [esi + 0x1fc], edi
je 0x402956
push edi
push edi
lea eax, [esi + 0x1e0]
push eax
mov ecx, esi
call fcn.0042fb61
mov eax, dword [esi]
xor ebx, ebx
inc ebx
push ebx
mov ecx, esi
call dword [eax + 0x144]
push edi
push 8
push 0x100
mov ecx, esi
call fcn.00425fb6
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x402994
push edi
push edi
push 0x200
call fcn.00425fb6
mov ecx, dword [ebp - 4]
push 0x20
push edi
add ecx, 0x54
call fcn.004020c4
push edi
push 0x80000000
push 0x1cc0000
mov ecx, esi
call fcn.00425f8c
push ebx
mov ecx, esi
call fcn.004021c4
push 0x27
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004260e2
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00422509
mov dword [esi + 0xd4], ebx
jmp 0x402acd
cmp dword [ebx + 0xbc], edi
mov ecx, esi
push edi
je 0x4029f6
push 0xc80000
push 0x80000000
jmp 0x4029fc
push 0x80480000
push edi
call fcn.00425f8c
cmp dword [esi + 0x27c], edi
je 0x402a17
push edi
push 0x40000
push edi
mov ecx, esi
call fcn.00425f8c
cmp dword [esi + 0x278], edi
jne 0x402a27
push edi
mov ecx, esi
call fcn.004021c4
mov ebx, dword [ebp - 4]
cmp ebx, edi
je 0x402a47
push edi
push 0x200
push edi
mov ecx, ebx
call fcn.00425fb6
push edi
push 0x20
lea ecx, [ebx + 0x54]
call fcn.004020c4
push edi
push 0x100
push edi
mov ecx, esi
call fcn.00425fb6
xor ebx, ebx
inc ebx
cmp dword [esi + 0x1fc], edi
je 0x402a70
push edi
push ebx
lea eax, [esi + 0x1e0]
push eax
mov ecx, esi
call fcn.0042fb61
cmp dword [esi + 0xf4], edi
je 0x402a88
push edi
push ebx
lea eax, [esi + 0xd8]
push eax
mov ecx, esi
call fcn.0042fb61
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x144]
cmp dword [esi + 0x274], edi
mov ecx, esi
je 0x402aaf
push 0x27
push edi
push edi
push edi
push edi
push edi
call fcn.004260e2
push 3
mov ecx, esi
jmp 0x402ab1
push 9
call fcn.0042603f
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x402ac7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0xd4], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fd9
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x14]
push eax
push 0
mov esi, ecx
push 0x41a
push dword [esi + 0x1a8]
call edi
lea eax, [ebp - 0x24]
push eax
push 0
push 0x419
push dword [esi + 0x1a8]
call edi
fild dword [esi + 0x288]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
pop edi
sub eax, dword [ebp - 0x14]
pop esi
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
fidiv dword [ebp - 4]
leave
ret

Function at 0x404c85
Capabilities:
Delete file

Disassembly:
mov eax, 0x4352f7
call fcn.00414da8
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esi + 0x54]
push edi
call fcn.004094a0
call fcn.0043318a
mov eax, dword [eax + 4]
lea ebx, [eax + 0xe4]
cmp dword [ebx], edi
je 0x404cc6
mov eax, dword [esi + 0x18f4]
cmp dword [eax - 0xc], edi
je 0x404cc6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebx], edi
push edi
mov ecx, esi
call fcn.0040413a
lea ecx, [esi + 0x18f4]
call fcn.004011c8
push edi
lea ecx, [esi + 0x54]
call fcn.0042603f
mov ecx, esi
call fcn.00424621
mov ebx, eax
cmp ebx, edi
je 0x404d3f
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00402202
call fcn.00401162
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0xe000
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00401745
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00425fe0
push edi
mov ecx, ebx
call fcn.00402f90
push edi
mov ecx, ebx
call fcn.00402fb7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401148
push 1
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4051a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x41fb60
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00407640
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x41fb9d
cmp dword [esi + 0x28], 1
jne 0x41fb88
mov ecx, esi
call fcn.0041fad0
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 3
je 0x41fb9d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
je 0x41fbae
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x24], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x41fbba
xor eax, eax
jmp 0x41fbbd
mov eax, dword [eax + 0x1c]
push ebx
push 4
push ebx
push ebx
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x24]
push esi
push 0x41fab0
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
call fcn.0042796f
mov edx, dword [edi]
mov ecx, edi
mov dword [esi + 0x24], eax
mov byte [esi + 0x2c], bl
call dword [edx + 0x14]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x41fc0e
mov dword [eax + 0x24], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x28], 1
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x28], 4
pop esi
pop ebx
ret 8

Function at 0x41fc20
Capabilities:
Resume thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov ebx, 0xfffffffe
call fcn.00407640
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41fd13
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [esi + 0x28], 1
jne 0x41fc9d
mov ecx, edi
call fcn.00401162
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41fc8e
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
mov ecx, edi
jne 0x41fc82
mov eax, dword [edi]
call dword [eax + 0x14]
mov eax, 1
jmp 0x41fc9a
mov edx, dword [edi]
call dword [edx + 0x14]
mov eax, 3
jmp 0x41fc9a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, 4
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 2
jne 0x41fcce
mov ecx, dword [esi + 0x24]
or eax, 0xffffffff
test ecx, ecx
je 0x41fcc3
mov ecx, dword [ecx + 0x28]
push ecx
call ebp
test eax, eax
je 0x41fcbc
cmp eax, 1
jne 0x41fcc3
mov dword [esi + 0x28], 1
cmp eax, 0xffffffff
mov ebx, eax
jne 0x41fc47
cmp dword [esi + 0x28], 1
pop ebp
jne 0x41fcdf
mov ecx, esi
call fcn.0041fad0
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 1
je 0x41fcea
cmp ebx, 0xfffffffe
jne 0x41fd13
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x28]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
jne 0x41fd13
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x41fd13
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x24], ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 4
Function at 0x42788c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.004150a0
add esp, 0xc
call fcn.0043317a
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x42795c
cmp dword [ebp - 8], ebx
je 0x427957
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42775e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00416136
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x427966
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x42792f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x427949
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x427961
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x427968
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x427966
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42796f
Capabilities:
Resume thread

Disassembly:
mov eax, 0x435af7
call fcn.00414da8
push ecx
push esi
push 0x40
call fcn.00401162
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x42799e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00433230
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.0042788c
test eax, eax
jne 0x4279c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x4279e2
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x4279e0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x42c719
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.00401162
test eax, eax
jne 0x42c909
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.0041367e
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x42c75d
cmp edi, ebx
je 0x42c75d
cmp edi, 0x202
jne 0x42c8b6
cmp edi, 0x200
jb 0x42c76d
cmp edi, 0x209
jbe 0x42c785
cmp edi, 0xa0
jb 0x42c8b6
cmp edi, 0xa9
ja 0x42c8b6
call fcn.004331b0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004150a0
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x42c7e3
push dword [ebp - 0x24]
call fcn.0041538b
pop ecx
cmp edi, ebx
jne 0x42c7f6
test byte [ebp - 0x41], 0x80
je 0x42c7f6
mov dword [ebp - 8], 1
jmp 0x42c814
and dword [ebp - 8], 0
cmp edi, ebx
je 0x42c814
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x42c814
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x42c880
cmp dword [ebp - 8], 0
jne 0x42c880
cmp edi, 0x202
jne 0x42c840
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x42c868
test byte [esi + 0x78], 8
jne 0x42c871
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x42c871
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x42c8ad
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0042bdca
jmp 0x42c8ad
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x42c8ad
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x42c893
cmp dword [ebp - 8], 0
je 0x42c8ad
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.00424660
test eax, eax
pop ebx
je 0x42c8c8
cmp dword [eax + 0x64], 0
jne 0x42c90e
cmp dword [ebp - 0x10], 0
je 0x42c8f0
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x42c909
mov ecx, edi
call fcn.00424621
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x42c8ce
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42c90e
push dword [ebp + 8]
mov ecx, esi
call fcn.00422f29
jmp 0x42c910
xor eax, eax
inc eax
jmp 0x42c910
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x43439e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4343d3
cmp edi, dword [esi + 0xc]
jge 0x4343d3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4343d3
cmp edi, dword [eax + 8]
jge 0x4343d3
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4343d5
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4344d9
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x43450d
jmp fcn.00420543
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x434677
cmp eax, dword [edi + 0xc]
jge 0x434677
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4345cf
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x434660
cmp dword [ebp + 0xc], ebx
je 0x434660
jmp 0x4345f9
push 0x10
call fcn.0043426a
cmp eax, ebx
je 0x4345e5
mov ecx, eax
call fcn.004344d0
mov esi, eax
jmp 0x4345e7
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x434610
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x434620
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x434632
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00401162
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004150a0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x434672
cmp ecx, dword [esi + 8]
jge 0x434672
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x434678
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4015a0
Capabilities:
Create process on windows

Disassembly:
push edi
mov ecx, 0x41
push esi
mov esi, eax
xor eax, eax
push ebx
sub esp, 0x130
lea ebx, [esp + 0x2c]
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], str.runas
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
sub esp, 0x18
mov dword [esp], 0
call sym._exit
lea esi, [esi]
lea esi, [esi]

Function at 0x401620
Capabilities:
Get disk information

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x28c
lea ebp, [esp + 0x8c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 4], ebp
mov dword [esp], 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
sub esp, 8
test eax, eax
je 0x401701
cmp byte [esp + 0x8c], 0
je 0x401701
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edi, [esp + 0x28]
lea esi, [esi]
mov dword [esp + 4], 0x4e6006
mov dword [esp], ebp
call ebx
sub esp, 8
test eax, eax
je 0x4016f4
mov dword [esp + 4], 0x4e600a
mov dword [esp], ebp
call ebx
sub esp, 8
test eax, eax
je 0x4016f4
movzx eax, byte [ebp]
mov byte [esp + 0x27], 0
mov byte [esp + 0x25], al
movzx eax, byte [ebp + 1]
mov dword [esp + 8], 0x64
mov byte [esp + 0x26], al
lea eax, [esp + 0x25]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
sub esp, 0xc
test eax, eax
je 0x401726
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esp, 4
mov esi, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__strnicmp]
test eax, eax
je 0x401733
add ebp, 4
cmp byte [ebp], 0
jne 0x401670
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
sub esp, 8
add esp, 0x28c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x28c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x25]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
add esi, dword [esp + 0x18]
mov dword [esp], edi
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
sub esp, 8
add esp, 0x28c
pop ebx
pop esi
pop edi
pop ebp
ret