joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7f4
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret

Function at 0x40e02c
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e035
mov eax, dword [esp + 0x2000]
add esp, 0xfffffb30
mov ebx, edx
mov esi, eax
lea edi, [esp + 0x10b4]
lea eax, [esp + 0xc14]
call fcn.004064b4
lea eax, [esp + 0xc40]
call fcn.004064b4
lea eax, [esp + 0xc6c]
call fcn.004064b4
push 0
lea ecx, [esp + 4]
mov edx, ebx
mov eax, esi
call fcn.004057e4
test al, al
jne 0x40e095
xor eax, eax
jmp 0x40e1e2
cmp byte [esp], 0
je 0x40e0a5
cmp byte [esp + 0xc98], 0
jne 0x40e0ac
xor eax, eax
jmp 0x40e1e2
mov eax, esp
call fcn.00405bf4
lea edx, [esp + 0xc98]
call fcn.00406c1c
test eax, eax
je 0x40e0da
mov eax, esi
call fcn.00405bf4
lea edx, [esp + 0xc98]
call fcn.00406c1c
test eax, eax
je 0x40e0e1
xor eax, eax
jmp 0x40e1e2
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.0040f79c
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00405bf4
push eax
call fcn.0040f884
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00406aa0
test al, al
je 0x40e11f
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40e0e3
mov eax, edi
xor edx, edx
call fcn.00406aa0
test al, al
je 0x40e133
xor eax, eax
jmp 0x40e1e2
lea eax, [esp + 0x14b4]
mov ecx, 0x400
mov edx, esi
call fcn.0040f79c
mov eax, esp
call fcn.00405bf4
push eax
lea eax, [esp + 0x14b8]
call fcn.00405bf4
pop edx
call fcn.0040f78c
push edi
lea ecx, [esp + 0x14b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40e176
xor eax, eax
jmp 0x40e1e2
lea eax, [esp + 0x18b4]
call fcn.0040e1ec
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00406aa0
test al, al
jne 0x40e1a3
lea eax, [esp + 0x18b4]
xor ecx, ecx
mov edx, esi
call fcn.0040e3d8
mov ebx, eax
lea eax, [esp + 0x14b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40e1cd
lea eax, [esp + 0x18b4]
call fcn.0040e4dc
lea eax, [esp + 0x18b4]
call fcn.0040e564
mov al, 1
push eax
lea eax, [esp + 0x18b8]
mov edx, 2
call fcn.0040e240
pop eax
add esp, 0x24d4
pop edi
pop esi
pop ebx
ret
Function at 0x40e288
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40e2ab
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40e2bc
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40e2cb
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x40e2d5
xor eax, eax
jmp 0x40e2da
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00405388
test eax, eax
je 0x40e307
test esi, esi
je 0x40e307
cmp word [esi], 0
je 0x40e307
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40e31e
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e337
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40e337
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40e3a1
mov dword [ebx + 4], edi
test esi, esi
je 0x40e36c
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040ff64
jmp 0x40e375
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40e388
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040f78c
jmp 0x40e397
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040fd44
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040e488
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e594
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40e6b7
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40e5cf
dec eax
je 0x40e5b9
dec eax
je 0x40e5c5
jmp 0x40e5cf
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40e5cf
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40e621
xor ebp, ebp
cmp esi, ebp
jle 0x40e63d
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40e5f4
mov ecx, esi
sub ecx, ebp
jmp 0x40e5f9
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40e63d
add ebp, 0x4000
cmp esi, ebp
jg 0x40e5db
jmp 0x40e63d
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40e6b3
cmp byte [edi + 0x14], 0
je 0x40e6b3
cmp dword [edi + 0xc], 0
jne 0x40e6b3
lea edx, [edi + 0x17]
mov eax, 0x41a4d4
call fcn.0040c77c
test al, al
je 0x40e69d
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40e5cf
cmp dword [esp + 4], 0
jbe 0x40e5cf
mov eax, edi
call fcn.0040e8dc
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040e824
jmp 0x40e5cf
lea ecx, [edi + 0x17]
mov eax, 0x41a4d4
xor edx, edx
call fcn.0040c764
jmp 0x40e6b3
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e7a4
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40e7cb
cmp esi, 0x4e20
jle 0x40e7c1
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40e81c
mov eax, ebx
call fcn.0040eae4
test al, al
je 0x40e803
cmp esi, 0x4e20
jle 0x40e803
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040e7a4
jmp 0x40e81f
cmp dword [ebx + 0xc], 1
jne 0x40e817
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40e817
xor eax, eax
jmp 0x40e81f
or eax, 0xffffffff
jmp 0x40e81f
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fcd4
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x414744], 0
jne 0x40fced
call fcn.0040f928
mov dword [0x414740], eax
inc byte [0x414744]
call fcn.0040f928
sub eax, dword [0x414740]
cmp eax, 0x64
jle 0x40fd29
cmp dword [0x4148c4], 0
je 0x40fd24
mov eax, 0x41a4d4
mov edx, 0xff
call fcn.0040c918
mov eax, 0x41a4d4
mov edx, 0xff
call fcn.0040c910
call fcn.00402a30
ret
Function at 0x9b2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9b21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9b207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b206a
add dl, dl
jne 0x9b2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b20dc
xor eax, eax
add dl, dl
jne 0x9b2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b217d
add dl, dl
jne 0x9b20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9b20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9b2075
mov eax, 1
add dl, dl
jne 0x9b20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b20e1
sub eax, ebx
mov ebx, 1
jne 0x9b2128
mov ecx, 1
add dl, dl
jne 0x9b210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9b213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b2136
cmp eax, 0x7d00
jae 0x9b216d
cmp eax, 0x500
jb 0x9b2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b2075
cmp eax, 0x7f
ja 0x9b2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9b219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9b2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xa9a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a9a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa9a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9a06a
add dl, dl
jne 0xa9a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9a0dc
xor eax, eax
add dl, dl
jne 0xa9a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9a17d
add dl, dl
jne 0xa9a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa9a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa9a075
mov eax, 1
add dl, dl
jne 0xa9a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9a0e1
sub eax, ebx
mov ebx, 1
jne 0xa9a128
mov ecx, 1
add dl, dl
jne 0xa9a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa9a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9a136
cmp eax, 0x7d00
jae 0xa9a16d
cmp eax, 0x500
jb 0xa9a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9a075
cmp eax, 0x7f
ja 0xa9a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa9a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa9a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402742
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
xor ebx, ebx
xor edi, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce92f
jg 0x402772
inc edi
cmp edi, 0x1ffd9962
jl 0x402758
cmp dword [0x44cf1c], 0x400
jne 0x4027ca
push 0x443a80
push str.zudutalegexojefupo
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebx
push ebx
lea eax, [ebp - 0x800]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push ebx
call fcn.0040282e
push ebx
push ebx
call fcn.00402868
push ebx
call fcn.00402b51
push ebx
call fcn.00402bc5
add esp, 0x14
xor edi, edi
cmp edi, 0xd0fe
jge 0x4027db
push ebx
call dword [sym.imp.USER32.dll_GetCaretPos]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x58bc6e
jg 0x4027f4
inc edi
cmp edi, 0xe52f
jl 0x4027cc
mov eax, dword [0x445eb4]
mov dword [0x44cf1c], eax
call fcn.004024c7
mov esi, 0x3078f
cmp dword [0x44cf1c], 0x51f
jne 0x402822
push ebx
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec esi
jne 0x402808
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x405ece
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445d10]
jne 0x405ed8
repz ret
jmp fcn.00407afc
Function at 0x42e050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c4940]
xor edx, edx
cmp eax, edx
jne 0x42e076
xor eax, eax
mov byte [eax + 0x4c4840], al
inc eax
cmp eax, 0x100
jl 0x42e05e
mov dword [0x4c4940], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c4840
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42e107
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 0x42e0da
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 0x42e0a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42e180
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 0x42e1d3
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 0x42e1ba
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 0x432470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x432691
cmp eax, 8
jg 0x432691
cmp dword [esp + 0x8c], 2
jl 0x432691
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x432691
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x432691
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4324f7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x43267a
mov ebp, dword [0x47b4b0]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x432529
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x432661
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x432549
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x47b49c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x432588
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x47b4a0]
lea ecx, [esp + 0x28]
push ecx
call dword [0x47b4e4]
test eax, eax
jne 0x432648
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00431a80
cmp eax, 1
jne 0x432672
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00432330
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x43253d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x43267a
jmp 0x432514
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00431680
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x434c10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x434da8
cmp ebp, ebx
jle 0x434da8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x434c6e
dec eax
or eax, 0xfffffff8
inc eax
je 0x434c75
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x434c84
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x434c8b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0046bcf7
add esp, 4
cmp eax, ebx
je 0x434cac
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0046bcf7
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x434d9e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x434d85
mov al, byte [edx]
cmp al, 0xc0
jbe 0x434d71
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x434d66
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x434d74
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x434d74
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x434d10
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x434d01
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x43c660
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x478c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0043d1e0
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x47b46c]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x47b4e4]
test eax, eax
je 0x43c709
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0043c2f0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x47b4b0]
push edi
lea ecx, [esp + 0x4c]
call fcn.0047297f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0044b870
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x47b070]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x47b50c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x47b4a0]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.004729f1
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14