joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d574
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
call fcn.004144e0
mov ebx, dword [ebp + 8]
mov edi, eax
test ebx, ebx
js 0x41d743
test edi, edi
je 0x41d743
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x41d654
nop dword [eax]
cmp dword [eax + 0x10], ebx
jge 0x41d64a
mov eax, dword [eax + 8]
jmp 0x41d64e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x41d640
cmp byte [ecx + 0xd], 0
jne 0x41d6b4
cmp ebx, dword [ecx + 0x10]
jl 0x41d6b4
cmp edx, ecx
je 0x41d6b4
cmp dword [ecx + 0x14], 1
jne 0x41d670
mov edi, 2
jmp 0x41d6b9
mov dword [ecx + 0x14], 1
cmp dword [ecx + 0x18], 0xffffffff
je 0x41d699
push 0
push 0
push dword [ebp - 0x2c]
push 0x41d910
push 0
push 0
call fcn.004262c1
add esp, 0x18
test eax, eax
jne 0x41d69d
xor edi, edi
jmp 0x41d6b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x41d745
mov edi, 1
lea ecx, [ebp - 0x28]
call fcn.00411480
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00411530
push edi
lea ecx, [ebp - 0x28]
call fcn.00411540
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push dword [ebx + 8]
call fcn.0040ef80
test eax, eax
je 0x41d72e
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x41d72e
push eax
call fcn.004146b0
push 0x14
call fcn.00422267
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41d717
push dword [ebx + 0x18]
mov ecx, eax
call fcn.0041bae0
jmp 0x41d719
xor eax, eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41d72a
mov ecx, dword [ebx + 0x18]
push eax
call fcn.00417e00
mov bl, 1
jmp 0x41d730
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.0040ecc0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x41d745
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret 4
Function at 0x41e2e0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x41e300
push 0
push 0
call fcn.004262c1
add esp, 0x18
mov eax, 1
ret
Function at 0x41f410
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.00422267
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x41f44d
push 0
call fcn.00429f8d
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x41f44f
xor ebx, ebx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41f4a8
push edi
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41f4a0
push 0
call fcn.00429f8d
sub eax, dword [ebx]
add esp, 4
mov ecx, dword [ebp - 0xc]
imul eax, eax, 0x3e8
cmp eax, dword [ecx + 0x24]
ja 0x41f497
add edi, dword [ebp - 8]
sub esi, dword [ebp - 8]
jne 0x41f460
jmp 0x41f4a7
mov dword [ebp - 4], 0xfffffffe
jmp 0x41f4a7
mov dword [ebp - 4], 0xffffffff
pop edi
push 8
push ebx
call fcn.00422297
mov eax, dword [ebp - 4]
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f7c0
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d7d5
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [0x458ab8]
test al, al
jne 0x41f994
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f992
cmp dword [ebp - 0x198], 5
ja 0x41f82f
cmp dword [ebp - 0x194], 1
jbe 0x41f992
lea eax, [ebp - 0x28]
push eax
call fcn.0041f590
add esp, 4
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0
cmovae esi, dword [ebp - 0x28]
call fcn.00404170
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00404330
test eax, eax
jne 0x41f97e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
mov edi, eax
call fcn.00404320
test edi, edi
je 0x41f98a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SGTInitialize
push edi
call esi
push str.SGTUninitialize
push edi
mov dword [0x458a78], eax
call esi
push str.SGTInitParams
push edi
mov dword [0x458a7c], eax
call esi
push str.SGTCreateTask
push edi
mov dword [0x458a80], eax
call esi
push str.SGTResumeTask
push edi
mov dword [0x458a84], eax
call esi
push str.SGTPauseTask
push edi
mov dword [0x458a88], eax
call esi
push str.SGTSetTaskUploadLimit
push edi
mov dword [0x458a8c], eax
call esi
push str.SGTSetTaskDownloadLimit
push edi
mov dword [0x458a90], eax
call esi
push str.SGTReady
push edi
mov dword [0x458a94], eax
call esi
push str.SGTIsMemoryTask
push edi
mov dword [0x458a98], eax
call esi
push str.SGTProgress
push edi
mov dword [0x458a9c], eax
call esi
push str.SGTGetTaskStatus
push edi
mov dword [0x458aa0], eax
call esi
push str.SGTGetFileContent
push edi
mov dword [0x458aa4], eax
call esi
push str.SGTGetFilePath
push edi
mov dword [0x458aa8], eax
call esi
push str.SGTRemoveTask
push edi
mov dword [0x458aac], eax
call esi
push str.SetCRTExceptionHandler
push edi
mov dword [0x458ab0], eax
call esi
mov dword [0x458ab4], eax
test eax, eax
je 0x41f968
push 0x413600
call eax
lea ecx, [ebp - 0x28]
mov byte [0x458ab8], 1
call fcn.00405540
mov al, byte [0x458ab8]
jmp 0x41f994
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.00404320
lea ecx, [ebp - 0x28]
call fcn.00405540
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret
Function at 0x4203d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x458abc]
test eax, eax
jne 0x42046f
push esi
push 0x30
call fcn.00422267
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x42042f
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
mov byte [esi + 0x2c], 0
mov dword [esi + 0x1c], 0
jmp 0x420431
xor esi, esi
cmp byte [esi + 0x2c], 0
mov dword [0x458abc], esi
jne 0x42046c
push 0
push 0
push esi
push 0x4206e0
push 0
push 0
mov byte [esi + 0x2c], 1
call fcn.004262c1
add esp, 0x18
mov dword [esi + 0x1c], eax
test eax, eax
mov eax, dword [0x458abc]
jne 0x42046e
mov byte [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420600
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
jne 0x420631
push 0
push 0
push esi
push 0x4206e0
push 0
push 0
mov byte [esi + 0x2c], 1
call fcn.004262c1
add esp, 0x18
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x420631
mov byte [esi + 0x2c], al
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4231e2
Capabilities:
Parse pe header

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

Function at 0x42e573
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fb8
push 0x442fb0
push str.FlsAlloc
push 0x1f
call fcn.0042e46e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e5a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
jmp 0x42e5ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42e5f1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fc8
push 0x442fc0
push str.FlsGetValue
push 0x21
call fcn.0042e46e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e628
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42e630
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442fd0
push 0x442fc8
push str.FlsSetValue
push 0x22
call fcn.0042e46e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e66a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430760
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 + 0x459630]
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 0x4307a0
cmp byte [ebx], 0xa
jne 0x4307a0
or byte [edi + eax + 0x28], 4
jmp 0x4307a5
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 0x4308a4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x430887
inc eax
cmp dl, 0xd
je 0x4307d1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4307f7
cmp eax, ecx
jae 0x430805
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 0x4307b9
jmp 0x4308a4
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 0x430882
cmp dword [ebp - 0x10], 0
je 0x430882
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x459630]
test byte [eax + edi + 0x28], 0x48
je 0x43085c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x430847
mov byte [esi], dl
jmp 0x430858
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x459630]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4308a4
cmp byte [ebp - 1], 0xa
jne 0x43086b
cmp esi, ebx
jne 0x43086b
mov byte [esi], 0xa
jmp 0x4308a3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00433613
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4308a4
mov byte [esi], 0xd
jmp 0x4308a3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x459630]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4308a1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4308a4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4308ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x459630]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4308f3
cmp word [ebx], dx
jne 0x4308f3
or byte [eax + edi + 0x28], 4
jmp 0x4308f8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x430a5b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x430a3b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x430939
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43096f
cmp eax, edx
jae 0x43097d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x430914
jmp 0x430a5b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430a36
cmp dword [ebp - 0x18], 0
je 0x430a36
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x459630]
test byte [eax + edi + 0x28], 0x48
je 0x430a0c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4309d0
mov word [esi], cx
jmp 0x430a07
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x459630]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x459630]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x459630]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x430a5b
pop eax
cmp word [ebp - 4], ax
jne 0x430a1c
cmp esi, ebx
jne 0x430a1c
mov word [esi], ax
jmp 0x430a58
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00433613
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x430a5b
push 0xd
pop eax
jmp 0x430a17
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x459630]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x430a55
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x430a5b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x436114
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43615f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004362af
test al, al
jne 0x436159
sub edx, 2
cmp edx, edi
jne 0x43613f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x436181
lea eax, [edi + 2]
cmp edx, eax
je 0x436181
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00436060
add esp, 0x10
jmp 0x43627b
push esi
lea ecx, [ebp - 0x255]
call fcn.004362af
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4361c4
push dword [ebp - 0x25c]
jmp 0x436171
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x436201
cmp word [ebp - 0x226], 0
je 0x436222
cmp word [ebp - 0x226], ax
jne 0x436201
cmp word [ebp - 0x224], 0
je 0x436222
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00436060
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43626e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4361db
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x436256
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43627b
push 0x435e90
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042bfb0
add esp, 0x10
jmp 0x43624b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f6
leave
ret
Function at 0x43941b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00439397
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43958a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43958a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43953f
jg 0x439477
test eax, eax
je 0x439535
push 1
push 0x1000
call fcn.0042e2d8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43949a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43952c
push 0x8000
push ebx
call fcn.0042db98
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4394c3
jg 0x4394be
cmp ecx, 0x1000
jb 0x4394c3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00438353
add esp, 0x10
cmp eax, 0xffffffff
je 0x439508
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4394be
jl 0x4394ef
test ecx, ecx
jne 0x4394b0
push dword [ebp - 0xc]
push ebx
call fcn.0042db98
push esi
call fcn.0042e335
add esp, 0xc
xor ebx, ebx
jmp 0x439598
cmp byte [edi + 0x24], 0
je 0x43951f
cmp dword [edi + 0x20], 5
jne 0x43951f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43952a
mov ebx, dword [edi + 0x18]
jmp 0x43952c
xor ebx, ebx
push esi
call fcn.0042e335
pop ecx
jmp 0x439598
test ecx, ecx
jg 0x439501
jl 0x43953f
test eax, eax
jae 0x439501
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00433613
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43955f
cmp byte [edi + 0x1c], 0
je 0x439501
jmp 0x439590
push ebx
call fcn.00433b4b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x439501
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439598
cmp byte [edi + 0x1c], 0
je 0x439595
mov ebx, dword [edi + 0x18]
jmp 0x439598
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00433613
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a4c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0043a6d0
add esp, 0xc
test eax, eax
js 0x43a6c7
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x43a540
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
nop dword [eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x43a500
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x43a6c2
lea esi, [ebp + 4]
movzx eax, byte [esi + 0xd]
lea esi, [esi + 0x10]
mov edx, dword [esi - 4]
inc edi
movzx ecx, byte [eax*4 + 0x4488a0]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x449ca0]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x4494a0]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x4498a0]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x44a0a0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + 0x4488a0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4498a0]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x449ca0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x4494a0]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x44a0a0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + 0x4488a0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4498a0]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x449ca0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x4494a0]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x44a0a0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + 0x4488a0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4498a0]
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x449ca0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x4494a0]
movzx eax, dl
movzx eax, byte [eax*4 + 0x4488a0]
xor ecx, dword [eax*4 + 0x44a0a0]
mov dword [esi + 8], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x43a554
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x43b440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b46d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b46d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret