joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100082f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
xor esi, esi
xor edx, edx
test edi, edi
jle 0x10008423
mov dword [ebp - 4], edi
lea ebx, [ebx]
cmp dword [ebp - 4], 2
mov eax, dword [ebp + 8]
jl 0x10008332
movzx ecx, byte [edx + eax]
cmp ecx, 0x2f72
jne 0x10008332
movzx ecx, byte [edx + eax + 1]
cmp ecx, 0x2f6e
je 0x10008363
mov al, byte [edx + eax]
movzx ecx, al
cmp ecx, 0x2f6e
je 0x10008363
cmp al, 0x3d
jne 0x1000834a
inc esi
cmp esi, 2
jg 0x10008395
cmp al, 0x7f
ja 0x10008395
mov cl, byte [ecx + 0x100286e8]
cmp cl, 0x7f
je 0x10008395
cmp cl, 0x40
jae 0x10008362
test esi, esi
jne 0x10008395
inc ebx
dec dword [ebp - 4]
inc edx
cmp edx, edi
jl 0x10008310
mov dword [ebp - 4], edx
test ebx, ebx
je 0x10008423
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + ebx*2]
lea eax, [eax + eax + 7]
sar eax, 3
cmp dword [ecx], eax
jae 0x100083a1
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffee
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
mov ebx, 3
test edx, edx
jle 0x1000841b
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x2f72
je 0x10008410
cmp eax, 0x2f6e
je 0x10008410
mov al, byte [eax + 0x100286e8]
xor edx, edx
cmp al, 0x40
sete dl
movzx eax, al
and eax, 0x3f
shl ecx, 6
inc edi
sub ebx, edx
or ecx, eax
cmp edi, 4
jne 0x1000840d
xor edi, edi
test ebx, ebx
jle 0x100083f3
mov edx, ecx
shr edx, 0x10
mov byte [esi], dl
inc esi
cmp ebx, 1
jle 0x10008400
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov edx, dword [ebp - 4]
cmp ebx, 2
jle 0x10008410
mov byte [esi], cl
inc esi
jmp 0x10008410
mov edx, dword [ebp - 4]
inc dword [ebp + 8]
dec edx
mov dword [ebp - 4], edx
test edx, edx
jg 0x100083b1
sub esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ab20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023e4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x1002f490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor ecx, ecx
mov eax, 7
mov edx, 0x3c
mul edx
seto cl
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10012441
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1000abab
push fcn.1000c7c0
push 0x1000aaf0
push 7
lea ebx, [eax + 4]
push 0x3c
push ebx
mov dword [eax], 7
call fcn.10014cec
jmp 0x1000abad
xor ebx, ebx
push ebx
mov ebx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.1000adb0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], 7
mov ecx, 1
push 0x5c
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
lea ecx, [esi + 0x18]
push edi
push ecx
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x38], edi
mov dword [eax + 0x34], edi
call fcn.1001ca20
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b3c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.10013ddf
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x1000b52b
add dword [esi + 0x14], ecx
cmp dword [esi + 0x50], 0x10
push 0xffffffffffffffff
push eax
push 0x18
lea eax, [esi + 0x3c]
push ecx
mov ecx, esp
jb 0x1000b413
mov eax, dword [eax]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.100097c0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [ebp - 2]
mov dword [ebp - 8], edx
test edx, edx
je 0x1000b4d3
dec dword [ebp - 8]
xor edx, edx
cmp byte [ebp - 2], dl
je 0x1000b457
cmp byte [edi], dl
jmp 0x1000b45a
cmp word [edi], dx
sete dl
test edx, edx
je 0x1000b484
test eax, eax
je 0x1000b47d
cmp edi, eax
je 0x1000b47d
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.10012a00
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebx
add edi, ecx
cmp dword [ebp - 8], 0
jne 0x1000b449
test eax, eax
je 0x1000b4a9
cmp edi, eax
je 0x1000b4a9
mov ecx, dword [esi + 0x18]
imul ecx, ebx
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.10012a00
add esp, 0xc
test ebx, ebx
je 0x1000b4d3
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.100097c0
add esp, 0x18
sub dword [esi + 0x1c], ebx
cmp dword [esi + 0x18], 1
jle 0x1000b51f
test byte [esi + 4], 0x80
je 0x1000b51f
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x1000b4fb
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x1000b4e6
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [ebp - 0xc]
push eax
call fcn.100097c0
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.1000b1b0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000beb0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov eax, dword [esi + 0x1c]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebx, ebx
jne 0x1000bec9
mov ebx, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x1000bf46
test edx, edx
jne 0x1000bf02
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10012441
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebx
push edi
call fcn.10015360
add esp, 0x10
mov edx, edi
mov ebx, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000bf22
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x1000bf10
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.100097c0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebx
call fcn.10014091
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x1000bf6b
push edi
call fcn.10013b8a
add esp, 4
test bl, bl
je 0x1000bfa8
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x50], 0x10
push 0xffffffffffffffff
push edx
push 0x18
lea eax, [esi + 0x3c]
push ecx
mov ecx, esp
jb 0x1000bf8b
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.100097c0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
ret
push esi
call fcn.1000b1b0
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x100119a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100119c2
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x100119e2
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10011a26
mov ecx, dword [ebx + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10011a26
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x10011a5e
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x10011960
mov dword [esi + 0x18], 0x10011970
mov dword [esi + 0x1c], 0x10011990
mov dword [esi + 0x20], eax
mov edx, dword [ebx + 0x54]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.10015360
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
mov dword [esi], eax
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.10011590
add esp, 0x1c
test al, al
jne 0x10011ada
push 0x570
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x10011aec
push eax
mov eax, esi
call fcn.10011760
add esp, 4
call fcn.100117f0
test eax, eax
je 0x10011b26
push esi
call fcn.10011650
add esp, 4
mov eax, esi
call fcn.10011720
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x10011b3b
push 0
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x10011b34
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10011c30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012773
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002f490]
jne 0x1001277d
repz ret
jmp fcn.10017dc9
Function at 0x1002197e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002f490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10019f42
and dword [ebp - 0x14], 0
cmp dword [0x10032e0c], 0
mov dword [ebp - 0x18], eax
jne 0x10021a31
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10021ad9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10021ad9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10032e0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10032e10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10032e14], eax
call edi
push eax
call esi
mov dword [0x10032e1c], eax
test eax, eax
je 0x10021a31
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10032e18], eax
mov eax, dword [0x10032e18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10021a8a
cmp dword [0x10032e1c], ecx
je 0x10021a8a
push eax
call esi
push dword [0x10032e1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10021a8a
test ebx, ebx
je 0x10021a8a
call edi
test eax, eax
je 0x10021a81
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10021a81
test byte [ebp - 8], 1
jne 0x10021a8a
or dword [ebp + 0x10], 0x200000
jmp 0x10021abd
mov eax, dword [0x10032e10]
cmp eax, dword [ebp - 0x18]
je 0x10021abd
push eax
call esi
test eax, eax
je 0x10021abd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10021abd
mov eax, dword [0x10032e14]
cmp eax, dword [ebp - 0x18]
je 0x10021abd
push eax
call esi
test eax, eax
je 0x10021abd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10032e0c]
call esi
test eax, eax
je 0x10021ad9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10021adb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012773
leave
ret
Function at 0x401484
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x42a040]
xor eax, esp
mov dword [esp + 0x290], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x394
mov dword [0x42e310], eax
push esi
call fcn.0040bea8
pop ecx
push esi
xor edi, edi
mov dword [0x42b708], eax
push edi
push eax
call fcn.00407ab0
add esp, 0xc
test eax, eax
je 0x40167b
call fcn.0040325a
push 0x104
push dword [0x42b708]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [0x42b708]
push 1
lea ecx, [edx + 0x12c]
call fcn.00402320
mov edx, dword [0x42b708]
lea ecx, [edx + 0x258]
call fcn.004023ef
pop ecx
lea eax, [esp + 0xc]
push eax
push 0x8002
push dword [0x42e310]
call dword [sym.imp.USER32.dll_GetClassInfoA]
mov eax, dword [0x42e310]
push str.rdpicon
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], str.EncoderClass
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401563
push dword [0x42b708]
call fcn.0040be8d
pop ecx
jmp 0x40167b
call fcn.00404b8c
mov eax, dword [0x42b708]
mov esi, 0x12c
add eax, 0x258
push eax
push str._sRdpZapper__.lic
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00401034
add esp, 0x10
lea ecx, [esp + 0x38]
call fcn.004010d0
mov eax, dword [0x42b70c]
test eax, eax
je 0x40167b
cmp dword [eax + 4], edi
je 0x40167b
mov ecx, dword [0x42b708]
lea eax, [ecx + 0x12c]
push eax
lea eax, [ecx + 0x258]
push eax
push str._s_s.bin
lea eax, [esp + 0x174]
push esi
push eax
call fcn.00401034
add esp, 0x14
lea eax, [esp + 0x168]
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push eax
call dword [0x42e2f4]
mov esi, eax
cmp esi, 0xffffffff
je 0x40167b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [0x42b710], eax
call fcn.0040bea8
mov dword [0x42b6fc], eax
pop ecx
test eax, eax
je 0x401670
push edi
lea ecx, [esp + 0x38]
push ecx
push dword [0x42b710]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401670
mov eax, dword [0x42b710]
cmp eax, dword [esp + 0x34]
jne 0x401670
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
mov ebx, 0x100
push edi
push edi
push esi
push 0x4013c2
push edi
push edi
call dword [0x42e2f8]
inc esi
cmp esi, ebx
jl 0x401647
jmp 0x401666
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x42b6f8], ebx
jl 0x40165e
jmp 0x40167b
test esi, esi
je 0x40167b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x29c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406768
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402a4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
test esi, esi
jne 0x402a5e
xor eax, eax
jmp 0x402b60
mov edx, dword [ebp + 8]
test edx, edx
jne 0x402a6e
push esi
call fcn.0040c440
pop ecx
mov edx, eax
or ecx, 0xffffffff
push ebx
mov ebx, 0x55555555
cmp edx, 8
jb 0x402b3d
push edi
mov edi, edx
shr edi, 3
movzx eax, byte [esi]
sub edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
movzx eax, byte [esi + 1]
xor ecx, ebx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
movzx eax, byte [esi + 2]
xor ecx, ebx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
movzx eax, byte [esi + 3]
xor ecx, ebx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
movzx eax, byte [esi + 4]
xor ecx, ebx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
movzx eax, byte [esi + 5]
xor ecx, ebx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
movzx eax, byte [esi + 6]
xor ecx, ebx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
movzx eax, byte [esi + 7]
xor ecx, ebx
xor eax, ecx
add esi, 8
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + str.UUUU]
xor ecx, ebx
sub edi, 1
jne 0x402a86
pop edi
test edx, edx
je 0x402b5b
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.UUUU]
xor ecx, ebx
inc esi
sub edx, 1
jne 0x402b41
not ecx
mov eax, ecx
pop ebx
pop esi
leave
ret
Function at 0x403182
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor esi, esi
mov ecx, dword [edi + 0x3c]
mov ebx, dword [ecx + edi + 0x78]
add ebx, edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, edi
mov dword [ebp - 0x10], eax
add ecx, edi
mov eax, dword [ebx + 0x24]
add eax, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x18], esi
jbe 0x4031e1
mov ecx, dword [ecx + esi*4]
add ecx, edi
call fcn.0040310e
push eax
push dword [ebp - 4]
call fcn.0040c3b0
pop ecx
pop ecx
test eax, eax
je 0x4031e8
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x4031bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x4031e3

Function at 0x4073c2
Capabilities:
Parse pe header

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

Function at 0x417c85
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4241d8
push 0x4241d0
push str.FlsAlloc
push 0x1f
call fcn.00417b44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417cb9
push dword [ebp + 8]
mov ecx, esi
call dword [0x421158]
call esi
jmp 0x417cbf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417d03
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4241e8
push 0x4241e0
push str.FlsGetValue
push 0x21
call fcn.00417b44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417d3a
push dword [ebp + 8]
mov ecx, esi
call dword [0x421158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417d42
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4241f0
push 0x4241e8
push str.FlsSetValue
push 0x22
call fcn.00417b44
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417d7c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x421158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x419386
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 0x419423
push ebx
push esi
call fcn.0041934f
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.004168e4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4193d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419422
push edi
push eax
call fcn.00414a7e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4193f0
call fcn.00414a44
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419421
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004168e4
add esp, 0x20
test eax, eax
jne 0x41940f
push edi
call fcn.00414a44
jmp 0x419417
push ebx
call fcn.00414a44
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 0x419426
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x419437
pop esi
ret
push ebx
push edi
push esi
call fcn.0041934f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00414a7e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41945f
push ebx
push esi
push edi
call fcn.00407530
add esp, 0xc
push 0
call fcn.00414a44
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41982f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419474
Function at 0x420450
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x429fbd
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x42a830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x429fcf
mov dword [ebp - 8], 1
jmp 0x429fd6
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x42ec70
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4473cb
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x453568
lea ecx, [ebp - 0x440]
call fcn.00403d90
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x440]
call fcn.00405580
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x440]
call fcn.00403e90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0xffffffff
jne 0x42ed18
mov dword [ebp - 0x450], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00403e60
mov eax, dword [ebp - 0x450]
jmp 0x42edf2
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x40f]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x410]
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x454]
mov dword [eax + 4], 0x400
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x41c], 8
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x420], 0
push 0
lea ecx, [ebp - 0x44c]
push ecx
push 0xc
lea edx, [ebp - 0x428]
push edx
push 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx edx, byte [ebp - 0x420]
cmp edx, 1
jne 0x42edd0
mov dword [ebp - 0x448], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00403e60
mov eax, dword [ebp - 0x448]
jmp 0x42edf2
mov dword [ebp - 0x458], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.00403e60
mov eax, dword [ebp - 0x458]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443690
mov esp, ebp
pop ebp
ret