joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x414d1c
test eax, eax
je 0x414d1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x42ffe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x414d03
lea edi, [eax + 4]
jmp 0x414c67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x414c7c
mov dword [ebp - 4], 2
jmp 0x414c9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x414c93
mov dword [ebp - 4], 1
jmp 0x414c9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x414d13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x414cd6
mov byte [ecx], 0x3d
jmp 0x414ce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x414ced
mov byte [ecx], 0x3d
jmp 0x414cf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x414c64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x404f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0x46a4a0
call fcn.00413555
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0x50b9fc
jmp 0x404fe0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.00402250
mov dword [ebp - 0x30], 0x737c0276
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x30]
cmp eax, 0xe645968d
jg 0x405000
cmp eax, 0x925e0966
jne 0x404fe0
jmp 0x404fad
cmp eax, 0x50b9fb
jg 0x405020
cmp eax, 0xe645968e
jne 0x404fe0
mov dword [ebp - 0x30], 0x1f9061e3
jmp 0x404fe0
cmp eax, 0x8dd1394
jg 0x405043
cmp eax, 0x50b9fc
jne 0x404fe0
mov eax, 0x6f80d32a
cmp dword [ebp - 0xc], 0
je 0x40503e
mov eax, 0x925e0966
mov dword [ebp - 0x30], eax
jmp 0x404fe0
cmp eax, 0x1f9061e2
jg 0x405068
cmp eax, 0x8dd1395
jne 0x404fe0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004135d6
mov dword [ebp - 0x30], 0x3fae1588
jmp 0x404fe0
cmp eax, 0x3fae1587
jg 0x405092
cmp eax, 0x1f9061e3
jne 0x404fe0
mov eax, 0x8dd1395
cmp dword [ebp - 0x24], 0
jne 0x40508a
mov eax, 0x3fae1588
mov dword [ebp - 0x30], eax
jmp 0x404fe0
cmp eax, 0x7799f840
jg 0x4050b7
cmp eax, 0x737c0275
jg 0x4050fd
cmp eax, 0x43081045
jg 0x405120
cmp eax, 0x3fae1588
jne 0x404fe0
jmp 0x405170
cmp eax, 0x7799f841
jne 0x404fe0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.004137a4
mov dword [ebp - 0x28], eax
mov ecx, 0xe645968e
cmp eax, dword [ebp - 0x18]
jne 0x4050f5
mov ecx, 0x700172b4
mov dword [ebp - 0x30], ecx
jmp 0x404fe0
cmp eax, 0x737c0276
jne 0x404fe0
mov eax, 0x7799f841
cmp dword [ebp - 0x18], 0
jne 0x405118
mov eax, 0x43081046
mov dword [ebp - 0x30], eax
jmp 0x404fe0
cmp eax, 0x43081046
je 0x40513a
cmp eax, 0x6f80d32a
jne 0x40514d
mov dword [ebp - 0x30], 0x1f9061e3
jmp 0x404fe0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0x1f9061e3
jmp 0x404fe0
cmp eax, 0x700172b4
jne 0x404fe0
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 0x737c0276
jmp 0x404fe0
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop esi
pop edi
pop ebp
ret
Function at 0x4096f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x4093a0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004139a3
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x7dca351a
jmp 0x409750
mov dword [ebp - 0x10], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
cmp eax, 0x7dca3519
jg 0x4097b0
cmp eax, 0x5803e487
jg 0x4097d0
cmp eax, 0x482cffd5
jg 0x4097f6
cmp eax, 0x35a0f4dc
jg 0x40980d
cmp eax, 0xc856cdb
jg 0x40983b
cmp eax, 0xddf56333
jg 0x409852
cmp eax, 0x9e340fbf
jg 0x409880
cmp eax, 0x960f5dc4
jne 0x409750
mov dword [ebp - 0x10], 0xddf56334
jmp 0x409750
cmp eax, 0x7dca351a
jne 0x409750
mov eax, 0x9e340fc0
cmp dword [ebp - 4], 0
je 0x409744
mov eax, 0x960f5dc4
jmp 0x409744
cmp eax, 0x5803e488
jne 0x409750
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x10], 0xc856cdc
jmp 0x409750
cmp eax, 0x482cffd6
jne 0x409750
mov dword [ebp - 0x10], 0xc6bba3fa
jmp 0x409750
cmp eax, 0x35a0f4dd
jne 0x409750
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x10], 0xddf56334
jmp 0x409750
cmp eax, 0xc856cdc
jne 0x409750
mov dword [ebp - 0x10], 0xc6bba3fa
jmp 0x409750
cmp eax, 0xddf56334
jne 0x409750
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x10], 0xad748c51
jmp 0x409750
cmp eax, 0xad748c50
jg 0x40989e
cmp eax, 0x9e340fc0
jne 0x409750
mov dword [ebp - 0x10], 0xc4b2507b
jmp 0x409750
cmp eax, 0xb801c173
jg 0x4098bc
cmp eax, 0xad748c51
jne 0x409750
mov dword [ebp - 0x10], 0xc4b2507b
jmp 0x409750
cmp eax, 0xc4b2507b
je 0x4098d6
cmp eax, 0xc6bba3fa
jne 0x4098ee
mov dword [ebp - 0x10], 0xb801c174
jmp 0x409750
mov eax, 0x5803e488
cmp dword [ebp - 0xc], 0
jne 0x4098e6
mov eax, 0xc856cdc
mov dword [ebp - 0x10], eax
jmp 0x409750
cmp eax, 0xb801c174
jne 0x409750
add esp, 0x28
pop ebp
ret
Function at 0x40add0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x40b944]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0xf1c3bcdf
jmp 0x40ae10
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x1c]
cmp eax, 0x2d362e29
jg 0x40ae60
cmp eax, 0xf1c3bcde
jg 0x40aed0
cmp eax, 0xcf8c9e6f
jg 0x40aef3
cmp eax, 0x96922a58
je 0x40af11
cmp eax, 0xc259d1c8
je 0x40aefe
cmp eax, 0x9f18f884
jne 0x40ae10
jmp 0x40af30
cmp eax, 0x2d362e2a
jne 0x40ae10
mov dword [esp], 0
call fcn.0040af40
mov esi, eax
call fcn.00401fd0
imul eax, esi
mov dword [esp], eax
call fcn.00413432
mov eax, dword [ebp - 0x10]
movzx esi, word [eax]
mov dword [esp], eax
call fcn.00403720
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2 - 2]
neg eax
sub esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
neg eax
sub esi, eax
mov dword [ebp - 0x14], esi
mov eax, 0x96922a58
cmp esi, dword [ebp - 0x18]
je 0x40ae02
mov eax, 0xcf8c9e70
jmp 0x40ae02
cmp eax, 0xf1c3bcdf
jne 0x40ae10
mov eax, 0xc259d1c8
cmp dword [ebp - 8], 0
je 0x40aeeb
mov eax, 0x2d362e2a
mov dword [ebp - 0x1c], eax
jmp 0x40ae10
cmp eax, 0xcf8c9e70
jne 0x40ae10
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0x9f18f884
jmp 0x40ae10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x41d11c], eax
call fcn.0041340f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x9f18f884
jmp 0x40ae10
mov eax, dword [ebp - 0xc]
add esp, 0x1c
pop esi
pop ebp
ret
Function at 0x41b45a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004182b3
mov dword [ebp - 0x14], eax
cmp dword [0x467318], edi
jne 0x41b54b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41b4d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b62b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41b62b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b62b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x467318], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46731c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x467320], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x467328], eax
test eax, eax
je 0x41b548
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x467324], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b570
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b563
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41b585
push 4
pop eax
jmp 0x41b62d
cmp dword [ebp - 0x14], edi
je 0x41b585
push dword [0x467318]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41b56a
mov eax, dword [0x467324]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41b5e3
cmp dword [0x467328], esi
je 0x41b5e3
push eax
call ebx
push dword [0x467328]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b5e3
test eax, eax
je 0x41b5e3
call ecx
test eax, eax
je 0x41b5d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41b5d8
test byte [ebp - 8], 1
jne 0x41b5e3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41b613
mov eax, dword [0x46731c]
cmp eax, esi
je 0x41b610
push eax
call ebx
test eax, eax
je 0x41b610
call eax
mov edi, eax
test edi, edi
je 0x41b610
mov eax, dword [0x467320]
cmp eax, esi
je 0x41b610
push eax
call ebx
test eax, eax
je 0x41b610
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x467318]
call ebx
test eax, eax
je 0x41b62b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41b62d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004153b9
leave
ret
Function at 0x432002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4bc008], 0x8088405
inc edx
mov dword [ebx + 0x4bc008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
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 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x49f9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4a0d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x4be73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x4be73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x4bd538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push edi
push 0x400
push 8
mov edi, eax
call dword [0x40801c]
push eax
call dword [0x408010]
test eax, eax
jne 0x401022
push eax
call dword [section..rdata]
cmp edi, 0x40ac40
jne 0x401031
mov dword [0x40bf94], eax
jmp 0x40103e
cmp edi, 0x40b040
jne 0x40103e
mov dword [0x40bf98], eax
push ebx
push ebp
mov ebp, dword [0x408044]
push esi
xor ebx, ebx
mov esi, eax
sub edi, eax
lea ecx, [ecx]
mov al, byte [edi + esi]
mov byte [esi], al
call ebp
mov cl, bl
sub cl, 0x40
xor byte [esi], cl
inc ebx
inc esi
cmp ebx, 0x3ff
jb 0x401050
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x4010f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [0x40bf90]
mov ebp, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
cmp ebp, 4
jae 0x401108
pop edi
xor eax, eax
pop ebp
ret
push esi
movzx esi, byte [edx]
xor ecx, ecx
mov edi, edi
mov eax, esi
xor eax, ecx
cmp al, 0xeb
jne 0x40112c
movzx eax, byte [edx + 1]
xor eax, ecx
cmp al, 2
jne 0x40112c
movzx eax, byte [edx + 3]
xor eax, ecx
cmp al, 0xf1
je 0x40113b
inc ecx
cmp ecx, 0x100
jb 0x401110
pop esi
pop edi
xor eax, eax
pop ebp
ret
xor eax, eax
test ebp, ebp
jbe 0x40114a
xor byte [eax + edx], cl
inc eax
cmp eax, dword [edi + 0x14]
jb 0x401141
pop esi
pop edi
mov eax, 1
pop ebp
ret
Function at 0x401160
Capabilities:
Check http status code

Disassembly:
sub esp, 0x24
mov eax, dword [0x40bf90]
push ebx
push ebp
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
xor ebx, ebx
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], 0x4092b0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], eax
call dword [0x408128]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebp
je 0x4012ef
mov ecx, dword [0x40bf94]
push esi
push ebp
push ebp
push 3
push ebp
push ebp
push 0x50
push ecx
push edi
call dword [0x408120]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, ebp
je 0x4012e7
mov eax, dword [0x40bf98]
push ebp
push 0x4000000
lea edx, [esp + 0x34]
push edx
push ebp
push ebp
push eax
push ebp
push esi
call dword [0x408118]
mov ebx, eax
cmp ebx, ebp
je 0x4012dc
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [0x40811c]
test eax, eax
je 0x4012cd
mov esi, dword [0x40812c]
push ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000013
mov edi, 4
push ebx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x4012cd
cmp dword [esp + 0x1c], 0xc8
jne 0x4012cd
push ebp
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000005
push ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x4012cd
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4012cd
inc eax
push eax
push 8
call dword [0x40801c]
push eax
call dword [0x408010]
mov edi, eax
cmp edi, ebp
je 0x4012cd
mov ebp, dword [0x408124]
mov eax, dword [esp + 0x14]
xor esi, esi
jmp 0x401280
lea edx, [esp + 0x10]
push edx
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push ebx
call ebp
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4012a5
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4012a5
add esi, ecx
cmp esi, eax
jb 0x401280
cmp esi, eax
je 0x4012bb
push edi
push 0
call dword [0x40801c]
push eax
call dword [0x408018]
jmp 0x4012cd
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], edi
mov dword [esp + 0x18], 1
push ebx
call dword [0x408130]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push esi
call dword [0x408130]
mov ebx, dword [esp + 0x18]
push edi
call dword [0x408130]
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret