joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063d3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
test edx, edx
je 0x406adb
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
inc dword [eax]
mov dword [esi + 8], edx
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
inc dword [esi]
cmp byte [eax + 0xfd], 0
jne 0x43e0a2
cmp byte [eax + 0xfe], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
je 0x4054c0
jmp 0x43e0ba
xor edx, edx
jmp 0x4063fa
invalid
inc ebp
loopne 0x43e10d
call dword [0x571520]
push 0x579540
lea ecx, [ebp - 0x24]
call fcn.004031c0
mov eax, dword [ebp - 0x24]
fmul qword [ebp + 0x338be04d]
and dword [ebp - 4], 0
push 0x25
push ecx
push dword [eax - 0xc]
mov ecx, dword [esi + 0x68]
push eax
call 0x5462c3
adc byte [eax], al
mov ecx, ebx
call dword [esi + 0x68]
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401d00
mov eax, dword [ebx]
push dword [ebp - 0x30]
mov esi, dword [eax + 0x30]
mov ecx, esi
call 0x5462c3
mov ecx, ebx
call esi
push dword [ebp - 0x2c]
add byte [ebx - 0x290035], cl
jne 0x43e0e9
mov ecx, ebx
call fcn.00413514
mov eax, dword [ebx]
push dword [ebp - 0x28]
mov esi, dword [eax + 0x28]
mov ecx, esi
call 0x5462c3
mov ecx, ebx
call esi
call 0x5462de
ret 0x1c
Function at 0x401d30
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
push edi
add esp, 0xfffffef4
mov edi, dword [esp + 0x11c]
mov al, byte [edi]
test al, al
je 0x401d52
xor esi, esi
inc esi
mov al, byte [edi + esi]
test al, al
jne 0x401d48
jmp 0x401d54
xor esi, esi
test esi, esi
je 0x401dfe
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401da5
call fcn.00402120
test al, al
jne 0x401da5
push 0
lea eax, [esp + 0x10c]
push eax
push esi
push edi
push ebp
mov dword [esp + 0x11c], esi
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [esp + 0x10c]
push ecx
push 2
push 0x404108
push ebp
call sub.KERNEL32.DLL_WriteFile
jmp 0x401def
push 0
mov dword [esp + 0x10c], esi
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
jne 0x401dcb
mov byte [esp], 0
push 0x404118
call sub.KERNEL32.DLL_LoadLibraryA
push str.MessageBoxA
push eax
call sub.KERNEL32.DLL_GetProcAddress
push 0x12010
lea ecx, [esp + 4]
push ecx
push edi
push 0
call eax
mov eax, dword [0x405010]
test eax, eax
je 0x401dfe
push edi
call fcn.004020c0
sub esp, 0xfffffef4
pop edi
pop esi
pop ebp
ret 4

Function at 0x401fb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
add esp, 0xfffffaec
mov al, byte [0x405014]
test al, al
je 0x401fc6
mov al, 1
jmp 0x4020b6
push dword [0x405010]
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
lea ecx, [esp + 0x11c]
push ecx
call fcn.00401ca0
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x13c]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0xfffffff4
test eax, eax
je 0x40201b
xor al, al
jmp 0x4020b6
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 8]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x4020b4
lea eax, [esp + 4]
push eax
call fcn.004023f0
inc eax
push eax
lea ecx, [esp + 8]
push ecx
push 2
push 0
push str.EventMessageFile
mov eax, dword [esp + 0x120]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov ecx, eax
mov eax, dword [esp + 0x10c]
test ecx, ecx
je 0x402074
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x4020b6
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x18], 7
call sub.ADVAPI32.DLL_RegSetValueExA
mov edx, eax
mov eax, dword [esp + 0x10c]
test edx, edx
je 0x4020a9
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x4020b6
mov byte [0x405014], 1
mov al, 1
jmp 0x4020b6
xor al, al
sub esp, 0xfffffaec
ret

Function at 0x402140
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp word [edi], 0x5a4d
je 0x402156
push str.Invalid_DOS_signature
call fcn.00401e10
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
je 0x40216b
push str.Invalid_PE_signature
call fcn.00401e10
mov eax, edi
pop edi
ret 4
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, 0x25087167
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x1a925354
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401920
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40195f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40195f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40195f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40195f
cmp dword [ecx + 0x74], 0xe
jbe 0x40195f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408074
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 0x408111
push ebx
push esi
call fcn.0040803d
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.00407fd1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4080be
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408110
push edi
push eax
call fcn.00408c91
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4080de
call fcn.004058fb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40810f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407fd1
add esp, 0x20
test eax, eax
jne 0x4080fd
push edi
call fcn.004058fb
jmp 0x408105
push ebx
call fcn.004058fb
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 0x409411
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412028
push 0x412020
push str.FlsAlloc
push 0x1f
call fcn.004092d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409445
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
jmp 0x40944b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40948f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412038
push 0x412030
push str.FlsGetValue
push 0x21
call fcn.004092d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4094c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4094ce
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412040
push 0x412038
push str.FlsSetValue
push 0x22
call fcn.004092d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409508
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x410124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40ef90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40efbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40efbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5b17d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x154000]
push edi
jmp 0x5b17ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5b17f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b17e0
mov eax, 1
add ebx, ebx
jne 0x5b1803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5b1814
jne 0x5b1833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b1833
dec eax
add ebx, ebx
jne 0x5b1820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5b17f8
add ebx, ebx
jne 0x5b182f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5b1885
xor ecx, ecx
sub eax, 3
jb 0x5b184b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5b18ba
sar eax, 1
mov ebp, eax
jmp 0x5b1856
add ebx, ebx
jne 0x5b1856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b1824
inc ecx
add ebx, ebx
jne 0x5b1864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b1824
add ebx, ebx
jne 0x5b1871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5b1866
jne 0x5b1882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5b1866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5b18a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5b1896
jmp 0x5b17e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5b18a4
add edi, ecx
jmp 0x5b17e6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5b18c2
cmp byte [edi], 0x11
jne 0x5b18c2
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 0x5b18c7
lea edi, [esi + 0x1aa000]
mov eax, dword [edi]
or eax, eax
je 0x5b193f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27cf10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27d08c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5b18f4
mov ecx, edi
jns 0x5b1923
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x27d090]
or eax, eax
je 0x5b1939
mov dword [ebx], eax
add ebx, 4
jmp 0x5b1911
call dword [esi + 0x27d0a0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5b1970
cmp al, 0xef
ja 0x5b1963
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5b1945
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5b1952
mov ebp, dword [esi + 0x27d094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5b19a4
sub esp, 0xffffff80
jmp 0x420577
Function at 0xbd6430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xc5d028]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 4
lea ecx, [ebp - 8]
call fcn.00bd65c0
mov eax, dword [ebp + 8]
push eax
call fcn.00bd6420
add esp, 4
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00bd66d0
add esp, 8
push eax
lea ecx, [ebp - 8]
call fcn.00bd6740
lea ecx, [ebp - 0x10]
call fcn.00bd6620
mov dword [ebp - 0x14], 0xbd5b80
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.00bd6610
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
call fcn.00c040ee
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0xbd64b7
lea ecx, [ebp - 8]
call fcn.00bd65e0
jmp 0xbd64c8
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
push 6
call fcn.00bd6e4c
lea ecx, [ebp - 8]
call fcn.00bd6620
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00bf55e3
mov esp, ebp
pop ebp
ret 4

Function at 0xbf6644
Capabilities:
Parse pe header

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

Function at 0xc2d840
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00c2d438

Function at 0xc2d84b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00c2d5c2

Function at 0xc435d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xc435fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xc435fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xc443c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0xc5d028]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jle 0xc443e5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0xc443ec
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0
jmp 0xc44411
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jae 0xc444b6
mov byte [ebp - 5], 5
push 1
push 0
lea edx, [ebp - 5]
push edx
call fcn.00bf77a0
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
movzx ecx, byte [ebp - 0x11]
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0x10]
movzx edx, byte [edx + 0xc8fabc]
xor ecx, edx
mov byte [ebp - 5], cl
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x12], cl
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
add ecx, edx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov byte [edx], cl
push fcn.00bd3f00
push 0xc54e3c
push 0xc91488
call fcn.00bd4810
add esp, 8
mov ecx, eax
call fcn.00bd3b40
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
movzx ecx, byte [ebp - 0x13]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
jmp 0xc44408
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00bf55e3
mov esp, ebp
pop ebp
ret
Function at 0xc444d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xc5d028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x64616f4d
cmp dword [0xc92d84], 0
je 0xc4450e
cmp dword [0xc92d80], 0
jne 0xc445ec
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push ebx
push ecx
mov ecx, 0x64616f4e
sub ecx, 1
dec ecx
dec ecx
mov ebx, ecx
pop ecx
add ebx, 1
cmp dword [esi], ebx
pop ebx
jne 0xc44533
push ebx
pushal
or ch, ch
sbb ax, 0x2a
popal
mov ebx, 0x41797262
sub ebx, 2
add ebx, 1
cmp dword [esi + 8], ebx
pop ebx
jne 0xc44533
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0xc92d84], edi
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push eax
mov eax, 0x50746546
add eax, 1
cmp dword [esi], eax
pop eax
jne 0xc445ac
push ebx
mov ebx, 0x73736571
add ebx, 1
cmp dword [esi + 0xa], ebx
pop ebx
jne 0xc445ac
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0xc92d80], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0xc44600
cmp dword [ebp - 0x10], 1
je 0xc44615
jmp 0xc44628
mov ecx, dword [str.WQGUF]
mov eax, ecx
push eax
mov eax, dword [0xc92d84]
call eax
mov dword [ebp - 0xc], eax
jmp 0xc44628
mov ecx, dword [0xc5dab4]
mov eax, ecx
push eax
mov eax, dword [0xc92d84]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0xc92d80]
call eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00bf55e3
mov esp, ebp
pop ebp
ret
Function at 0x47d97b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47d9ba
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47d9ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47d9ba
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47d9ba
cmp dword [ecx + 0x74], 0xe
jbe 0x47d9ba
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x487149
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 0x4871e6
push ebx
push esi
call fcn.00487112
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.004870a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x487193
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4871e5
push edi
push eax
call fcn.00485c18
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4871b3
call fcn.00485665
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4871e4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004870a6
add esp, 0x20
test eax, eax
jne 0x4871d2
push edi
call fcn.00485665
jmp 0x4871da
push ebx
call fcn.00485665
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 0x48859a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x491a30
push 0x491a28
push str.FlsAlloc
push 0x1f
call fcn.00488459
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4885ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x48f12c]
call esi
jmp 0x4885d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x488618
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x491a40
push 0x491a38
push str.FlsGetValue
push 0x21
call fcn.00488459
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48864f
push dword [ebp + 8]
mov ecx, esi
call dword [0x48f12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x488657
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x491a48
push 0x491a40
push str.FlsSetValue
push 0x22
call fcn.00488459
mov esi, eax
add esp, 0x10
test esi, esi
je 0x488691
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48f12c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48a234
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4970f0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48a274
cmp byte [ebx], 0xa
jne 0x48a274
or byte [edi + eax + 0x28], 4
jmp 0x48a279
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x48a378
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48a35b
inc eax
cmp dl, 0xd
je 0x48a2a5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48a2cb
cmp eax, ecx
jae 0x48a2d9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x48a28d
jmp 0x48a378
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a356
cmp dword [ebp - 0x10], 0
je 0x48a356
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4970f0]
test byte [eax + edi + 0x28], 0x48
je 0x48a330
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48a31b
mov byte [esi], dl
jmp 0x48a32c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4970f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48a378
cmp byte [ebp - 1], 0xa
jne 0x48a33f
cmp esi, ebx
jne 0x48a33f
mov byte [esi], 0xa
jmp 0x48a377
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048a02d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48a378
mov byte [esi], 0xd
jmp 0x48a377
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4970f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48a375
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48a378
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret