joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8ab0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x508f88
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x4b8bd4
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x4b8be6
dec ecx
je 0x4b8b2c
dec ecx
jne 0x4b8bd4
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4b8bfb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4b8bfb
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4b8b25
mov eax, dword [0x610240]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.004b8ff0
mov bl, 1
jmp 0x4b8bc7
mov edx, dword [0x610240]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004b8df0
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x4b8bb5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4b8bb5
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4b8b84
mov eax, dword [0x610240]
mov ecx, edi
push eax
push ebp
call fcn.004b8ff0
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x4b8b93
mov eax, 0x61023c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x4b8bc3
mov al, byte [ecx - 1]
test al, al
je 0x4b8bb9
cmp al, 0xff
je 0x4b8bb9
dec al
mov byte [ecx - 1], al
jmp 0x4b8bc3
xor bl, bl
jmp 0x4b8b9a
dec ecx
push ecx
call fcn.004f98ba
add esp, 4
test bl, bl
je 0x4b8bd2
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x4b8bfb
push eax
call fcn.004b9b50
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x4b8bc7
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4b94a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x836804
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4b94ef
call fcn.005033c7
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4b94d4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x836804
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4b94ef
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4b9505
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4b9519
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4b9532
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.004b9c50
add esp, 0xc
test al, al
jne 0x4b95d1
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x4b95d9
mov esi, dword [0x610248]
jae 0x4b9561
call fcn.004f48c5
mov ecx, edi
call fcn.004b97e0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x4b9575
mov esi, ecx
test esi, esi
jbe 0x4b95b3
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004e52e0
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.004b96c0
test al, al
je 0x4b95af
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4b95bf
mov edi, 0x610244
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.004b95f0
jmp 0x4b95b3
Function at 0x4c0550
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
push esi
push edi
mov eax, dword [ebp]
mov edi, dword [ebp + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x4c0653
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x4c05d6
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x4c0636
mov eax, dword [ebp + 0x34]
mov edx, dword [ebx - 4]
push eax
mov ecx, edi
push 4
push 0x1000
add ecx, edx
push esi
push ecx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x4c065e
mov eax, dword [ebx - 4]
mov ecx, esi
mov edx, ecx
add edi, eax
xor eax, eax
mov dword [ebx - 8], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4c0632
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
add ecx, eax
push ecx
push edx
call fcn.004c0530
add esp, 8
test eax, eax
je 0x4c065e
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebx - 4]
mov edx, edi
push 4
push 0x1000
add edx, eax
push ecx
push edx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x4c065e
mov ecx, dword [ebx - 4]
mov esi, dword [ebx + 4]
mov eax, edi
mov edi, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [ebx]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x4c0583
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4c0670
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi]
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov ecx, dword [edi + 0x3c]
push ecx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.004c07c0
push esi
push edi
mov dword [esp + 0x28], eax
call fcn.004c07d0
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x24]
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
add esi, 0x28
cmp word [ecx + 6], ax
mov dword [esp + 0x10], eax
jbe 0x4c078b
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.004c07c0
push esi
push edi
mov ebx, eax
call fcn.004c07d0
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x4c0735
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ebx
ja 0x4c0735
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004c0800
add esp, 8
test eax, eax
je 0x4c07ab
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
jmp 0x4c076a
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test eax, 0x2000000
je 0x4c0753
test ecx, 0x2000000
je 0x4c0753
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x4c075e
or eax, ecx
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
add ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x4c06d1
mov eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004c0800
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4c6fc0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x83bf44]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x83bed4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4c6fd3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4c7014
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x83bf7c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4c7046
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c704a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4c703b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4c7068
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c706c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4c705d
xor ecx, ecx
mov eax, 0x83bee4
xor ebx, ebx
mov bl, byte [ecx + 0x83bf8c]
cmp byte [esp + ebx + 0x14], 0
je 0x4c7097
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x83bfa4]
cmp byte [esp + ebx + 0x14], 0
je 0x4c70ae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x83bf44
jl 0x4c707e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4c7007
lea edx, [esp + 0x84]
push edx
call fcn.004c70f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4ca710
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4ca776
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4ca776
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4ca757
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4cab00
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4cab38
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4cb760
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4cb7a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4cbc20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x509220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004cb7d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004cb850
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004cb850
lea ecx, [esi + 0xc]
call fcn.004f9adb
lea ecx, [esi + 0x10]
call fcn.004f9adb
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004ccde0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004ccde0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004ccde0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004f9b50
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004f9b50
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cfe20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x884290]
xor edx, edx
cmp eax, edx
jne 0x4cfe46
xor eax, eax
mov byte [eax + 0x884190], al
inc eax
cmp eax, 0x100
jl 0x4cfe2e
mov dword [0x884290], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x884190
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4cfed7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4cfeaa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4cfe78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4cff50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4cffa3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4cff8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d6920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50961e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004d7240
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7d9144
call fcn.004f9891
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d69b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f9891
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d69ac
push 0
mov ecx, eax
call fcn.004cda50
mov dword [esi + 0xc], eax
jmp 0x4d69b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d69b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4e7637
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e7657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e649a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4e767a
test byte [esp + 8], 2
je 0x4e767a
call fcn.004e650d
mov dword [eax], 0xd
call fcn.004e6516
mov dword [eax], 5
jmp 0x4e7653
xor eax, eax
ret

Function at 0x4fbf1e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4fbf56
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f9fab
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f9f83
jmp 0x4fbf62
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4fd613
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4fd655
call fcn.005033c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4fd655
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4fd64c
xor eax, eax
jmp 0x4fd65d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004fd663
pop edi
pop esi
pop ebx
ret 4

Function at 0x5038f7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x503925
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x503943
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0050385d
jmp 0x503943
mov eax, dword [esi + 0x14]
test eax, eax
je 0x503943
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0050385d
test edi, edi
mov eax, edi
jne 0x50392d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001e030
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
cmp word [esp + 0x44], 0x24
jb 0x1001e207
mov eax, dword [esp + 0x4c]
cmp word [eax], 0x10
jb 0x1001e207
push esi
lea ecx, [eax + 3]
push edi
lea eax, [esp + 0xa]
mov esi, 2
jmp 0x1001e060
movzx edx, byte [ecx - 1]
mov edi, edx
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
mov word [eax], dx
movzx edx, byte [ecx]
mov word [eax - 2], di
mov edi, edx
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
mov word [eax + 4], dx
movzx edx, byte [ecx + 1]
mov word [eax + 2], di
mov edi, edx
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
mov word [eax + 8], dx
movzx edx, byte [ecx + 2]
mov word [eax + 6], di
mov edi, edx
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
mov word [eax + 0xc], dx
movzx edx, byte [ecx + 3]
mov word [eax + 0xa], di
mov edi, edx
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
mov word [eax + 0x10], dx
movzx edx, byte [ecx + 4]
mov word [eax + 0xe], di
mov edi, edx
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
mov word [eax + 0x14], dx
movzx edx, byte [ecx + 5]
mov word [eax + 0x12], di
mov edi, edx
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
mov word [eax + 0x18], dx
movzx edx, byte [ecx + 6]
mov word [eax + 0x16], di
mov edi, edx
shr edi, 4
mov di, word [edi*2 + str.0123456789abcdef]
and edx, 0xf
mov dx, word [edx*2 + str.0123456789abcdef]
mov word [eax + 0x1a], di
mov word [eax + 0x1c], dx
add ecx, 8
add eax, 0x20
dec esi
jne 0x1001e060
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 8]
lea ecx, [eax + 2]
mov dword [ecx], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x10]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x1e], edx
mov edx, dword [esp + 0x24]
mov ecx, 0x2d
mov dword [eax + 0x22], edx
mov edx, dword [esp + 0x28]
mov word [eax + 0x12], cx
mov word [eax + 0x1c], cx
mov word [eax + 0x26], cx
mov word [eax + 0x30], cx
lea edi, [eax + 0x32]
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0x2c]
mov ecx, 6
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [eax + 0x2c], edx
mov word [eax], 0x24
xor al, al
pop esi
add esp, 0x40
ret
call fcn.100129b0
mov al, 1
add esp, 0x40
ret
Function at 0x10024db3
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10024ea0
mov eax, 0x94
call fcn.10025770
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10024f15
mov ecx, dword [esi + 0x10]
mov dword [0x1003a3a0], ecx
mov eax, dword [esi + 4]
mov dword [0x1003a3ac], eax
mov edx, dword [esi + 8]
mov dword [0x1003a3b0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1003a3a4], esi
je 0x10024e1e
or esi, 0x8000
mov dword [0x1003a3a4], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1003a3a8], eax
call fcn.10025ef2
test eax, eax
pop ecx
je 0x10024f15
call fcn.10027751
test eax, eax
jne 0x10024e4b
call fcn.10025f43
jmp 0x10024f15
call fcn.10028056
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1003aa14], eax
call fcn.10027f34
mov dword [0x1003a228], eax
call fcn.10027a15
test eax, eax
jl 0x10024e99
call fcn.10027e92
test eax, eax
jl 0x10024e94
call fcn.10027c5f
test eax, eax
jl 0x10024e94
call fcn.10027802
test eax, eax
jne 0x10024e94
inc dword [0x1003a224]
jmp 0x10024f26
call fcn.10027c13
call fcn.10027544
jmp 0x10024e41
test eax, eax
jne 0x10024ed0
cmp dword [0x1003a224], eax
jle 0x10024f15
dec dword [0x1003a224]
cmp dword [0x1003a3dc], eax
jne 0x10024ebf
call fcn.1002794b
call fcn.10027c13
call fcn.10027544
call fcn.10025f43
jmp 0x10024f26
cmp eax, 2
jne 0x10024f19
push 0x88
push 1
call fcn.1002795a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10024f15
push esi
push dword [0x1003946c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10024f0f
call fcn.10027562
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10024f26
call fcn.10024b03
pop ecx
xor eax, eax
jmp 0x10024f29
cmp eax, 3
jne 0x10024f26
push 0
call fcn.100275e6
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10027867
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.100260f4
xor esi, esi
inc esi
cmp dword [0x1003a3e0], esi
pop ecx
jne 0x1002788f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x1003a3dc], esi
mov byte [0x1003a3d8], al
jne 0x100278f5
mov ecx, dword [0x1003a9e8]
test ecx, ecx
je 0x100278d6
mov eax, dword [0x1003a9e4]
sub eax, 4
cmp eax, ecx
jmp 0x100278cf
mov eax, dword [eax]
test eax, eax
je 0x100278c1
call eax
mov eax, dword [0x1003a9e4]
sub eax, 4
cmp eax, dword [0x1003a9e8]
mov dword [0x1003a9e4], eax
jae 0x100278b9
mov eax, 0x10039020
mov esi, 0x10039024
cmp eax, esi
mov edi, eax
jae 0x100278f5
mov eax, dword [edi]
test eax, eax
je 0x100278ee
call eax
add edi, 4
cmp edi, esi
jb 0x100278e6
mov eax, 0x10039028
mov esi, 0x1003902c
cmp eax, esi
mov edi, eax
jae 0x10027914
mov eax, dword [edi]
test eax, eax
je 0x1002790d
call eax
add edi, 4
cmp edi, esi
jb 0x10027905
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10027925
push 8
call fcn.10026060
jmp 0x10027937
push dword [ebp + 8]
mov dword [0x1003a3e0], 1
call fcn.100277c0
pop ecx
pop ebp
ret