joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100025d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10016920
push 0x10005d50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10018080]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.10003a62
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x1000274d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x10002697
cmp word [edi + 2], 0x5c
jne 0x10002697
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x1000266b
cmp eax, 0x5c
je 0x1000266b
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10002650
cmp word [esi], 0
je 0x10002677
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x1000268f
cmp eax, 0x5c
je 0x1000268f
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10002674
cmp word [esi], 0
je 0x100026bd
jmp 0x100026b7
cmp word [edi + 2], 0x3a
jne 0x100026bd
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x100026bd
cmp eax, 0x5c
jne 0x100026bd
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx eax, word [esi]
test ax, ax
je 0x10002714
cmp eax, 0x5c
jne 0x10002706
xor ecx, ecx
mov word [esi], cx
push edi
call ebx
cmp eax, 0xffffffff
jne 0x100026fa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100026fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100026fe
push edi
jmp 0x10002745
test al, 0x10
je 0x100026f7
mov edx, 0x5c
mov word [esi], dx
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100026c3
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.10003a28
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10003a28
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002c00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10002c2f
cmp dword [0x10195ab4], eax
jne 0x10002c2f
push eax
push eax
push eax
push 0x10002ba0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x10195ab4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10002e30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x3c]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x10002e73
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x10002e6c
mov esi, dword [eax + 0x20]
jmp 0x10002e73
test bl, bl
jns 0x10002e73
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x10002f40
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x3c]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x10002ec8
mov ecx, dword [ebx]
test cl, 0x40
je 0x10002ec1
mov edi, dword [eax + 0x20]
jmp 0x10002ec8
test cl, cl
jns 0x10002ec8
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x10002ef7
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x10002ef7
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.10002d80
test eax, eax
je 0x10002f5e
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x10002f1f
mov eax, dword [ebx]
test eax, 0x2000000
je 0x10002f0e
test dword [ebp - 0x10], 0x2000000
je 0x10002f0e
or dword [ebp - 0x10], eax
jmp 0x10002f19
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x10002ea0
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.10002d80
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003802
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10018080]
jne 0x1000380c
repz ret
jmp fcn.1000525c

Function at 0x10009fa5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10018080]
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.10006344
and dword [ebp - 0x14], 0
cmp dword [0x10195a84], 0
mov dword [ebp - 0x18], eax
jne 0x1000a058
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000a100
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10014a24
push ebx
call edi
test eax, eax
je 0x1000a100
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10195a84], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10195a88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10195a8c], eax
call edi
push eax
call esi
mov dword [0x10195a94], eax
test eax, eax
je 0x1000a058
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10195a90], eax
mov eax, dword [0x10195a90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000a0b1
cmp dword [0x10195a94], ecx
je 0x1000a0b1
push eax
call esi
push dword [0x10195a94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000a0b1
test ebx, ebx
je 0x1000a0b1
call edi
test eax, eax
je 0x1000a0a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000a0a8
test byte [ebp - 8], 1
jne 0x1000a0b1
or dword [ebp + 0x10], 0x200000
jmp 0x1000a0e4
mov eax, dword [0x10195a88]
cmp eax, dword [ebp - 0x18]
je 0x1000a0e4
push eax
call esi
test eax, eax
je 0x1000a0e4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000a0e4
mov eax, dword [0x10195a8c]
cmp eax, dword [ebp - 0x18]
je 0x1000a0e4
push eax
call esi
test eax, eax
je 0x1000a0e4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10195a84]
call esi
test eax, eax
je 0x1000a100
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000a102
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003802
leave
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x422e30
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42b5d0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x42b5d0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0x3e8
mov dword [esp + 0x78], 0
lea edi, [esp + 0x58]
mov ebx, 0x10
mov edx, dword [esi]
mov edx, dword [edx]
push 0x3e8
lea eax, [esp + 0x3c]
push eax
push ebx
push edi
mov ecx, esi
call edx
test eax, eax
jne 0x405ecf
mov eax, dword [esp + 0x38]
test eax, eax
je 0x405ecf
add edi, eax
sub ebx, eax
jne 0x405d45
cmp dword [esp + 0x58], 0xc11d793a
jne 0x405ecf
cmp dword [esp + 0x64], ebx
jne 0x405ecf
mov edi, dword [esp + 0x60]
cmp edi, 0x10000
ja 0x405ecf
lea esi, [esp + 0x3c]
call fcn.004061e0
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x60]
cmp eax, ebx
jbe 0x405dc8
mov ecx, dword [esp + 0x3c]
lea ebx, [esp + 0x4c]
call fcn.00407d50
test eax, eax
jne 0x405eb6
xor ebx, ebx
mov ecx, 0x10
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.004035c0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, esi
sub eax, ecx
add eax, 0x10
je 0x405dfe
push eax
push ebx
push ecx
call fcn.004134a0
add esp, 0xc
lea edi, [esi + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x78], 3
mov edx, dword [esp + 0x24]
mov dword [esi], 0xc11d793a
mov eax, dword [esp + 0x5c]
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
mov dword [eax], ebx
mov ecx, dword [esp + 0x5c]
push eax
push ecx
lea ebx, [esp + 0x30]
lea ecx, [esp + 0x44]
call fcn.00405f00
test al, al
jne 0x405e71
mov esi, ebx
call fcn.00403610
lea esi, [esp + 0x14]
call fcn.00403610
lea esi, [esp + 0x3c]
call fcn.00403610
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
jmp 0x405ee0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, eax
sub edx, ecx
mov dword [esi + 8], edx
mov edx, dword [esp + 0x24]
push edx
push eax
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00406b40
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, ecx
lea ebx, [esp + 0x4c]
call fcn.00407da0
lea esi, [esp + 0x28]
call fcn.00403610
lea esi, [esp + 0x14]
call fcn.00403610
lea esi, [esp + 0x3c]
call fcn.00403610
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [ecx]
jmp 0x405edb
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00411be9
mov esp, ebp
pop ebp
ret 4
Function at 0x40c750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42373b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42b5d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.0041212d
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x40c7ad
push 0xc
call fcn.0041212d
add esp, 4
test eax, eax
je 0x40c7a7
mov dword [eax], 0
mov dword [edi], eax
jmp 0x40c7af
xor eax, eax
mov dword [edi], eax
jmp 0x40c7af
xor edi, edi
mov esi, dword [edi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push esi
push 0x40bc40
push 0
push 0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call fcn.004127a0
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40c822
mov esi, dword [edi]
test esi, esi
je 0x40c806
mov eax, dword [esi]
test eax, eax
je 0x40c7fd
push 0xffffffffffffffff
push eax
call dword [0x42410c]
mov edx, dword [esi]
push edx
call dword [0x42407c]
mov dword [esi], 0
push esi
call fcn.004120d1
add esp, 4
push edi
call fcn.004120d1
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fd70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422f93
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x42b5d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov cl, byte [edi + 0x40]
mov byte [esi + 0x40], cl
push 0xffffffffffffffff
lea ecx, [esi + 0x44]
push 0
lea edx, [edi + 0x44]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00409c60
push 0xffffffffffffffff
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
push 0
lea eax, [edi + 0x60]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00409c60
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x7c]
mov dword [esi + 0x7c], ecx
mov edx, dword [edi + 0x80]
mov dword [esi + 0x80], edx
mov eax, dword [edi + 0x84]
lea edx, [esi + 0x88]
lea ecx, [edi + 0x88]
push edx
mov dword [esi + 0x84], eax
call fcn.0040fec0
lea ecx, [edi + 0x98]
lea eax, [esi + 0x98]
push ecx
push eax
mov byte [ebp - 4], 2
call fcn.0040ff70
add edi, 0xa8
push edi
lea edx, [esi + 0xa8]
push edx
mov byte [ebp - 4], 3
call fcn.0040ff70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404872
jl 0x404865
test ecx, ecx
jne 0x404872
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40494f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4048a2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x4048a4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x4048f8
jg 0x4048b5
test esi, esi
je 0x4048f8
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x4048c9
jl 0x4048c3
cmp ecx, esi
jae 0x4048c9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.004095c0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40491c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x404938
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x404887
jl 0x404938
test ecx, ecx
jne 0x404887
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40498d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40498d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.004095c0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4049f7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4049b3
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4049e2
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040dbbc
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4049f7
cmp edi, eax
ja 0x4049c0
test edi, edi
je 0x4049f7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040dbbc
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405460
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x405480
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4
Function at 0x407100
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40715d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x407120
mov eax, dword [esi]
jmp 0x40723b
cmp eax, 0x4e0
jb 0x40723b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x407176
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x4071c1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408cf0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408d2f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408d2f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408d2f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408d2f
cmp dword [ecx + 0x74], 0xe
jbe 0x408d2f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x414579
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424394
push 0x42438c
push str.FlsAlloc
push 0x1f
call fcn.00414441
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4145ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x421170]
call esi
jmp 0x4145b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4145f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4243a4
push 0x42439c
push str.FlsGetValue
push 0x21
call fcn.00414441
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41462e
push dword [ebp + 8]
mov ecx, esi
call dword [0x421170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x414636
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4243ac
push 0x4243a4
push str.FlsSetValue
push 0x22
call fcn.00414441
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414670
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x421170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]