joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7129e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ah, bh
rdtsc
bsr edx, eax
pop ax
mov dx, word [esp + 0x10]
mov word [esp + 0xe], di
jmp 0x7125f3
mov eax, 0x7af0b087
lea edx, [eax + ebp]
push dword [esp + 4]
lea edx, [esp + edx]
sub esp, 0xb
mov bx, word [esp + 0xb]
jmp 0x7125a5
setae bl
pop dword [esp + 7]
xchg byte [esp + 0x17], ah
lea eax, [edi + 0x10]
jmp 0x712647
mov dword [esp + 0x17], esi
push word [esp + 0x10]
mov ax, cx
mov eax, dword [esp + 0xf]
mov byte [esp], bh
sub esp, 6
jmp 0x7125dd
mov ah, ch
cld
neg dx
btr ax, sp
mov bx, 0xa419
sub esp, 0x10
jmp 0x7125c4
stc
cld
mov word [esp + 0x35], dx
lea ebx, [edi*4]
mov eax, dword [esp + 8]
mov word [esp + 0x2c], di
jmp 0x712674
lea edx, [eax + edi]
neg dx
push dword [esp + 3]
push dword [esp + 0xd]
rcl dx, 0xd
sub esp, 0x15
jmp 0x712625
mov ax, bp
neg ebx
xchg bl, ah
std
bswap eax
add edx, esp
jmp 0x7126bd
xchg dword [esp + 0x19], ebx
std
mov bx, word [esp + 0x3e]
bsf bx, bp
mov ebx, 0xb03f50dc
cld
jmp 0x71265e
xchg dx, ax
std
mov edx, 0x3acb1ea3
btc ax, bp
lea edx, [esi + edi]
lea eax, [eax + ebp]
jmp 0x712612
mov bx, 0xeda9
mov bx, word [esp + 0x11]
pop ax
mov dword [esp + 5], esp
jmp 0x7126e8
mov dx, di
rdtsc
not eax
bsf ebx, esi
mov dx, word [esp + 3]
mov bx, 0x852f
jmp 0x7126a7
test ebx, ebp
aad 0x8d
and al, 0x41
lea esp, [esp + 0x41]
mov bh, 0x49
sub esp, 1
mov bx, word [esp]
jmp 0x71281b
rol bh, cl
std
push word [esp + 0x3b]
std
bsf dx, sp
push ax
jmp 0x7126d2
rdtsc
push word [esp + 0x1b]
lea ebx, reloc.MSVCRT.dll___dllonexit
lea esp, [esp + 0x1e]
mov al, bh
rdtsc
jmp 0x71268f
sbb ecx, dword [ebp - 0xb2bd67]
dec dword [ebp - reloc.MSVCRT.dll___dllonexit]
invalid
pop dword [esp]
push dword [esp + 2]
xchg bh, ah
mov eax, 0xe2a572af
jmp 0x7127d4
jb 0x7126cf
loop 0x712715
movsb byte es:[edi], byte [esi]
add byte [eax], al
add byte [edi + ebx + 0xf2ab466], cl
lcall 0xd2c1, 0x665466c0
add al, 0xf
xor dword [esi - 0x71], esp
inc esp
and al, 2
mov ah, 0x2a
setp al
push sp
rcl dx, 4
rdtsc
pop word [esp + 2]
jmp 0x71271d
push dword [esp + 2]
push dword [esp + 4]
mov bx, 0x305b
ror dh, cl
pop word [esp + 3]
bsf bx, ax
jmp 0x712733
pop dword [esp + 0x15]
xchg dh, al
xchg dword [esp + 3], eax
call fcn.007127b6
xchg esi, eax
pop ss
xchg edx, esp
adc ebp, edi
or al, 0x88
push ds
jns 0x712709
jne 0x712728
aam 0x47
out dx, al
stc
fsub dword [esi - 0x71]
inc esp
and al, 0x16
pop word [esp + 0x16]
push word [esp + 0xd]
pop bx
mov eax, dword [esp + 0x1b]
not ebx
push dword [esp + 0xa]
jmp 0x712767
mov dl, byte [esp + 1]
dec al
bsr dx, si
mov byte [esp + 3], al
sub esp, 0x17
dec dx
jmp 0x712788
bt dx, si
sub esp, 3
push word [esp]
xchg al, ah
lea edx, [ebx*4]
mov al, 0xe7
jmp 0x71274e
bt ebx, esi
add esp, 0x14
mov byte [esp + 0xf], cl
mov eax, ecx
push edx
jmp 0x712703
Function at 0x4011cf
Capabilities:
Access peb ldr_data
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword fs:[0x30]
add eax, 0xc
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
fsin
fsincos
fsqrt
fxch st(5)
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 8]
jne 0x40125e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
push esi
lea esi, [0x401223]
prefetchnta byte [esi + 0x255]
pop esi
fnop
cmp dword [ebp - 8], 0
jne 0x401237
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [0x40248c], ecx
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp - 8], 1
jne 0x401253
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x401261
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x401204
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40178c
Capabilities:
Accept command line arguments
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4020f0], 0x44
mov dword [0x402160], 0x10007
push 0xff
push 0x4024c0
push 0
mov eax, dword [ebp + 0xc]
call dword [eax + 0x2c]
push 0
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov ecx, dword [ebp + 8]
mov dword [0x40249c], ecx
mov edx, dword [0x40249c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [0x4024b0], eax
push 0x4024a0
push 0x4020f0
push 0
push 0
push 4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x4024c0
mov ecx, dword [ebp + 0xc]
call dword [ecx + 0x34]
push 0
call dword [sym.imp.GDI32.dll_CancelDC]
mov edx, dword [0x4024b0]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [0x4024a0]
push ecx
mov edx, dword [ebp + 0xc]
call dword [edx + 0x40]
push 0x40
push 0x3000
mov eax, dword [0x4024b0]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [0x4024b0]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [0x4024a0]
push ecx
mov edx, dword [ebp + 0xc]
call dword [edx]
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
mov eax, dword [0x4024b0]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4024b0]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [0x4024a0]
push edx
mov eax, dword [ebp + 0xc]
call dword [eax + 0xc]
mov dword [0x402148], 0
jmp 0x40188c
mov ecx, dword [0x402148]
add ecx, 1
mov dword [0x402148], ecx
mov edx, dword [0x4024b0]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [0x402148], eax
jge 0x401907
mov ecx, dword [0x40249c]
mov edx, dword [ecx + 0x3c]
mov eax, dword [0x402148]
imul eax, eax, 0x28
add eax, dword [ebp + 8]
lea ecx, [eax + edx + 0xf8]
mov dword [0x4024b4], ecx
push 0
push 0
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0
mov edx, dword [0x4024b4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [0x4024b4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [0x4024b0]
mov ecx, dword [eax + 0x34]
mov edx, dword [0x4024b4]
add ecx, dword [edx + 0xc]
push ecx
mov eax, dword [0x4024a0]
push eax
mov ecx, dword [ebp + 0xc]
call dword [ecx + 0xc]
jmp 0x40187d
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401704
add esp, 4
pop ebp
ret
Function at 0x423880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, eax
lea ebp, [eax + 0x1fc]
mov eax, 0x52325032
push edi
push esi
push ebx
lea esi, [esi]
mov ebx, dword [edx]
add edx, 4
mov esi, ebx
xor esi, eax
shl eax, 8
shr esi, 0x18
xor eax, dword [esi*4 + 0x4cd560]
mov esi, ebx
shr esi, 0x10
mov edi, eax
shl eax, 8
mov ecx, esi
shr edi, 0x18
movzx esi, cl
xor esi, edi
xor eax, dword [esi*4 + 0x4cd560]
movzx esi, bh
movzx ebx, bl
mov edi, eax
shl eax, 8
shr edi, 0x18
xor esi, edi
xor eax, dword [esi*4 + 0x4cd560]
mov esi, eax
shl eax, 8
shr esi, 0x18
xor ebx, esi
xor eax, dword [ebx*4 + 0x4cd560]
cmp edx, ebp
jne 0x423898
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42ecf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov dword [esp], ebx
lea edi, [esi + 8]
call sub.msvcrt.dll_strlen
mov dword [esi], edi
mov ecx, esi
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.004a5ef0
movzx eax, byte [ebx]
sub esp, 8
test al, al
je 0x42ede8
mov byte [esp + 0x1b], 0
mov ebp, dword [esi]
xor edx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], ebx
jmp 0x42ed61
add eax, 0x20
mov byte [ebp + edx], al
mov ebp, dword [esi]
add edx, 1
mov byte [esp + 0x1b], 0
add dword [esp + 0x44], 1
mov eax, dword [esp + 0x44]
movzx eax, byte [eax]
test al, al
je 0x42edb8
lea ecx, [eax - 0x30]
cmp cl, 9
setbe cl
mov edi, ecx
lea ecx, [eax - 0x61]
cmp cl, 0x19
mov ebx, edi
setbe cl
or cl, bl
jne 0x42ed43
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x42ed40
movzx ecx, byte [esp + 0x1b]
test edx, edx
setg al
xor ecx, 1
and al, cl
je 0x42ed51
add dword [esp + 0x44], 1
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x44]
mov byte [ebp + edx], 0x5f
add edx, 1
mov ebp, dword [esi]
movzx eax, byte [eax]
test al, al
jne 0x42ed61
lea esi, [esi]
mov edi, dword [esp + 0x1c]
test edx, edx
je 0x42edea
lea eax, [edx - 1]
cmp byte [ebp + edx - 1], 0x5f
cmovne eax, edx
mov edx, dword [esi + 4]
cmp edx, eax
jb 0x42edf5
mov edx, dword [esi]
mov dword [esi + 4], eax
mov byte [edx + eax], 0
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esi]
mov byte [ebp], 0x5f
mov eax, 1
jmp 0x42edcb
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4d1393
mov dword [esp], 0x4d13a8
call fcn.004a9930
mov ebx, eax
jmp 0x4add74
Function at 0x430180
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [0x5398d0]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
test eax, eax
je 0x4301f0
cmp eax, 1
jne 0x4302ea
movzx eax, byte [esi + 2]
lea ebx, [ecx + 8]
cmp al, 0x67
je 0x430268
cmp al, 0x79
je 0x430210
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
movzx eax, byte [esi + 1]
mov dword [esp + 8], eax
movzx eax, byte [esi]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0042f150
cmp byte [esi], 0
jne 0x4302d0
lea esi, [esi]
nop
mov eax, dword [esp + 0x3c]
sub eax, dword [0x5398d0]
jne 0x4302e5
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0xc], edi
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4d15e4
call sub.msvcrt.dll_fwrite
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
movzx eax, byte [esi + 1]
mov dword [esp + 8], eax
movzx eax, byte [esi]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0042f630
jmp 0x4301f0
cmp byte [esi], 0
mov ecx, 0x4d15c0
movzx edx, byte [esi + 1]
mov dword [esp + 0xc], ebx
mov eax, 0x4d15c4
mov dword [esp], edi
lea ebp, [esp + 0x2c]
cmovne eax, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0x6e6f736a
mov dword [esp + 0x28], 4
mov byte [esp + 0x30], 0
call fcn.0042fc80
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4301f0
mov dword [esp], eax
call fcn.004ab140
jmp 0x4301f0
mov dword [esp + 4], edi
mov dword [esp], 0xa
call sub.msvcrt.dll_putc
jmp 0x4301f0
call fcn.00485600
mov edx, str.m_root_node.type__nt_object
mov eax, 0x2ca
call fcn.0042e7d0
mov ebx, eax
jmp fcn.004addb6

Function at 0x43a720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 4], 0x43a140
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
jmp fcn.0043a160
Function at 0x45b190
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [0x5398d0]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [esp], 0x4fb175
call sub.msvcrt.dll_getenv
test eax, eax
je 0x45b240
mov ebx, eax
movzx eax, byte [0x539780]
test al, al
jne 0x45b1d6
mov dword [esp], 0x539780
call fcn.004ab560
test eax, eax
jne 0x45b270
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], 0x5397d0
call fcn.00466970
or eax, dword [ebp - 0x14]
jne 0x45b220
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp dword [ebp - 0x10], eax
jne 0x45b220
mov eax, dword [ebp - 0xc]
sub eax, dword [0x5398d0]
jne 0x45b268
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], 0x4fb17f
call sub.msvcrt.dll__putenv
mov eax, dword [ebp - 0xc]
sub eax, dword [0x5398d0]
jne 0x45b268
mov ebx, dword [ebp - 4]
leave
jmp sub.msvcrt.dll__tzset
mov dword [esp], str.TZGMT
call sub.msvcrt.dll__putenv
call sub.msvcrt.dll__tzset
mov dword [esp], 0x4fb17f
call sub.msvcrt.dll__putenv
mov eax, dword [ebp - 0xc]
sub eax, dword [0x5398d0]
je 0x45b237
call fcn.00485600
lea esi, [esi]
mov dword [esp], str._A_Z_3_____0_9___A_Z_3_4__
mov ecx, 0x5397a0
call fcn.0045b100
sub esp, 4
mov dword [esp], 0x459ff0
call fcn.004014c0
mov dword [esp], 0x539780
call fcn.004ab620
jmp 0x45b1d6
Function at 0x45b2b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x3c]
push ebx
sub esp, 0x8c
mov edi, dword [ebp + 8]
mov eax, dword [0x5398d0]
mov dword [ebp - 0x1c], eax
xor eax, eax
call fcn.0045b190
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x68]
mov dword [esp], eax
call fcn.0045a090
mov dword [ebp - 0x6c], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20
mov dword [esp], esi
call dword [0x4b8480]
test eax, eax
jne 0x4b0b5a
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_strlen
mov edx, 0
sub eax, 1
cmovs eax, edx
mov byte [ebp + eax - 0x3c], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x45b390
mov eax, dword [sym.imp.msvcrt.dll__tzname]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x43], 0
mov dword [ebp - 0x40], 0
mov dword [esp], 0x4fb175
call sub.msvcrt.dll_getenv
test eax, eax
je 0x45b3b0
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str._s__s
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40
mov dword [esp], edi
call fcn.0048cd90
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x5398d0]
jne 0x45b444
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x6c], 0x4fb0b1
jle 0x45b331
mov eax, dword [sym.imp.msvcrt.dll__tzname]
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
jmp 0x45b331
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], edi
mov edi, dword [ebp - 0x6c]
cmp dword [ebp - 0x74], 5
mov dword [ebp - 0x6c], edi
setle byte [ebp - 0x6d]
jmp 0x45b3ed
cmp byte [ebp - 0x6d], 0
je 0x45b3f8
mov dword [esp], edi
add ebx, 1
call dword [sym.imp.msvcrt.dll__mbsinc]
mov ecx, dword [ebp - 0x6c]
sub eax, ecx
cmp eax, ebx
jle 0x45b418
mov ebx, eax
mov eax, dword [ebp - 0x6c]
lea edi, [eax + ebx]
cmp byte [edi], 0
jne 0x45b3d0
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x78]
lea edx, [ebp - 0x43]
cmp eax, 1
jle 0x45b440
add eax, edx
mov byte [eax], 0
mov dword [ebp - 0x6c], edx
jmp 0x45b34f
mov eax, edi
mov edi, ecx
movzx eax, byte [eax]
lea edx, [eax - 0x41]
cmp dl, 0x19
ja 0x45b3bd
mov edx, dword [ebp - 0x74]
mov byte [ebp + edx - 0x43], al
lea eax, [edx + 1]
mov dword [ebp - 0x74], eax
jmp 0x45b3bd
mov eax, edx
jmp 0x45b408
call fcn.00485600
lea esi, [esi]
mov dword [esp], 8
call fcn.004ab210
mov dword [esp], str.asctime_s___failed
mov ecx, eax
mov ebx, eax
call fcn.004a4100
push edx
mov dword [esp + 8], fcn.004a42c0
mov dword [esp + 4], 0x504064
mov dword [esp], ebx
call fcn.004ab710
mov dword [esp], ebx
mov esi, eax
call fcn.004ab490
mov dword [esp], esi
call fcn.00489660
Function at 0x467550
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ecx, 0x40
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x4c
mov eax, dword [0x5398d0]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2d1400
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
movzx eax, byte [0x526581]
je 0x467650
or al, byte [0x529708]
cmp al, 1
jbe 0x467636
mov eax, 0x4fbe68
mov ecx, 0x4fbe6c
mov ebp, dword [ebx + 0x10]
mov edi, dword [ebx + 0x1c]
cmp byte [ebx + 0xa], 0
mov esi, 0x4fbe6f
cmovne ecx, eax
mov eax, dword [ebx + 0x14]
lea edx, [ebx + eax]
test eax, eax
lea eax, [ebx + ebp]
cmove edx, esi
test ebp, ebp
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x14], edi
cmove eax, esi
mov dword [esp + 0x10], ecx
add ebx, ebp
test ebp, ebp
mov dword [esp + 0xc], edx
cmove ebx, esi
mov dword [esp + 8], eax
mov dword [esp], str.__IOCTL_STORAGE_QUERY_PROPERTY_returns:_n____Vendor:_____s__n____Product:____s__n____Revision:___s__n____Removable:__s_n____BusType:___0x_02x_n
mov dword [esp + 4], ebx
call fcn.004026d0
xor eax, eax
mov edx, dword [esp + 0x3c]
sub edx, dword [0x5398d0]
jne 0x467683
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
or al, byte [0x529708]
cmp al, 1
jbe 0x467670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__IOCTL_STORAGE_QUERY_PROPERTY_failed__Error_u_n
mov dword [esp + 4], eax
call fcn.004026d0
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x28
mov eax, 0xffffffff
jmp 0x467638
call fcn.00485600
lea esi, [esi]
nop
Function at 0x476f50
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x47702b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x476ffd
cmp eax, 0x6a
je 0x47701a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x476ff8
cmp eax, 0x6a
je 0x47701a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x477010

Function at 0x4773b0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x5398b8], 1
je 0x477468
push edi
mov eax, 0x5398b8
push esi
push ebx
sub esp, 0x10
call fcn.00476d30
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.00479ca0
mov edi, dword [0x5398b8]
test edi, edi
jne 0x477420
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4b83cc], eax
cmp eax, 0xffffffff
je 0x4b11c5
mov dword [0x5398b8], 1
mov dword [esp], esi
call fcn.00479fe0
test ebx, ebx
je 0x47745a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.00477040
cmp edi, 1
je 0x477402
mov dword [esp], 2
call dword [0x4b8490]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5398b8
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.00479fe0
test ebx, ebx
jne 0x47740e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort

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

Disassembly:
sub esp, 0x1c
call fcn.004773b0
mov eax, dword [0x4b83cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4775e8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.00477470
Function at 0x4778b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4778e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4779b0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x4779e0
cmp eax, 3
jne 0x4778cb
mov eax, dword [0x4b83cc]
cmp eax, 0xffffffff
je 0x4778cb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4778cb
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x477a10
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x477929
call fcn.004775f0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47795b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x47794d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.0047a160
mov dword [esp], edi
call fcn.0047afe0
cmp eax, 1
je 0x477ad6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x477aca
mov eax, dword [0x4b83cc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4778cb
mov eax, dword [0x539894]
test eax, eax
je 0x4778cb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x539894], 0
sub esp, 4
jmp 0x4778cb
mov dword [esp + 4], 0x476ca0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x539894], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x477a80
test eax, eax
je 0x477a2a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x477a47
call fcn.004775f0
test byte [ebx + 0x24], 4
je 0x477ac0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x47795b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0047a160
jmp 0x477963
test eax, eax
je 0x477ac0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0047a160
mov dword [esp], edi
call fcn.0047afe0
cmp eax, 1
je 0x477ad6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x4778cb
mov dword [esp], esi
call fcn.0047a160
jmp 0x477a9f
mov eax, ebx
call fcn.004771f0
jmp 0x477989
call fcn.00476f50
lea esi, [esi]
nop

Function at 0x478360
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004773b0
mov eax, dword [0x4b83cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x478388
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.00477470
test eax, eax
jne 0x47837d
add esp, 0x1c
ret