joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ac60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
cmp dword [ebp + 0xc], 1
jne 0x41ac86
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
jmp 0x41ac9d
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x41acac
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 1
jne 0x41acd6
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 8]
call sub.kernel32.dll_CreateFileMappingA
jmp 0x41ace8
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 8]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
jne 0x41acf6
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 1
jne 0x41ad13
push 0
push 0
push 0
push 0
push 4
push dword [ebp - 0x14]
call sub.kernel32.dll_MapViewOfFileEx
jmp 0x41ad28
push 0
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 0x14]
call sub.kernel32.dll_MapViewOfFileEx
or eax, eax
jne 0x41ad36
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.0041aeb9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41ad6e
push dword [ebp - 0x18]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, 0
pop ebx
leave
ret 8
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.0041aeed
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41adaa
push dword [ebp - 0x18]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, 0
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 0
jne 0x41adca
push dword [ebp - 0x18]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
jmp 0x41addf
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x128], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x12c], eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x10c], eax
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x41b400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
cmp dword [ebp + 0xc], 1
jne 0x41b426
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
jmp 0x41b43d
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x41b44c
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 1
jne 0x41b476
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 8]
call sub.kernel32.dll_CreateFileMappingA
jmp 0x41b488
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 8]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
jne 0x41b496
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 1
jne 0x41b4b3
push 0
push 0
push 0
push 0
push 4
push dword [ebp - 0x14]
call sub.kernel32.dll_MapViewOfFileEx
jmp 0x41b4c8
push 0
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 0x14]
call sub.kernel32.dll_MapViewOfFileEx
or eax, eax
jne 0x41b4d6
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.0041b66c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41b50e
push dword [ebp - 0x18]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, 0
pop ebx
leave
ret 8
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.0041b6b5
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41b54a
push dword [ebp - 0x18]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, 0
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 0
jne 0x41b56a
push dword [ebp - 0x18]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
jmp 0x41b57f
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x130], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x134], eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x10c], eax
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x41c6d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x41c6e3
cmp dword [esi + 0x2b], 0
je 0x41c6f1
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x41c77a
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindResourceA]
or eax, eax
jne 0x41c715
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x41c77a
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_LoadResource]
pop ecx
or eax, eax
jne 0x41c730
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x41c77a
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_SizeofResource]
or eax, eax
jne 0x41c74f
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x41c77a
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.0041ca00
or eax, eax
jne 0x41c76e
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x41c77a
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x425d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x425d35
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x425d4d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x425d7c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x425dbe
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x425e92
sub edx, 0x10000
js 0x425e92
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x425da4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x425da4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x425e15
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x425e12
add edx, 8
jne 0x425df9
jmp 0x425e83
add edx, 4
test eax, 0xffff
jne 0x425e22
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x425e83
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x425e56
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x425da4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x425e92
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x425da4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x425ea3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4671c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x310
lea ebp, [esp - 4]
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp + 0x310], eax
push 4
mov eax, 0x530dd5
call fcn.00508c91
push 0xffffffffffffffff
push str.LANG_EN
lea ecx, [ebp]
call fcn.00497a73
xor ebx, ebx
lea ecx, [ebp]
push str.LANG_KO
mov dword [ebp - 4], ebx
call fcn.00497c0e
push 4
call fcn.004a01f7
lea eax, [ebp + 0x84]
push eax
call fcn.0049b545
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0049b704
dec eax
je 0x467370
dec eax
je 0x467333
dec eax
je 0x4672bb
dec eax
jne 0x4673ea
push 0x5660cc
push 0x85
call fcn.0049b6ef
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4673ea
push esi
call fcn.0049b6ef
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4672af
push esi
call fcn.0049b6ef
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4672af
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.004a0204
add esp, 0xc
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x5660dc
call fcn.00467f41
mov ecx, eax
call fcn.004b9fdc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4673ea
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.00508650
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str.skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.00497cc8
lea ecx, [ebp + 0x84]
call fcn.0049816d
push eax
call fcn.004a01ae
mov dword [esp], 0x566084
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x4673de
push str.skin_
lea ecx, [ebp + 0x84]
call fcn.00497cc8
lea ecx, [ebp + 0x84]
call fcn.0049816d
push eax
call fcn.004a01ae
push ebx
push 1
push str.res.zip
call fcn.004a0292
add esp, 0x10
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x5660b8
jmp 0x4673de
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.00508650
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str...lib_skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.00497cc8
lea ecx, [ebp + 0x84]
call fcn.0049816d
push eax
call fcn.004a01ae
pop ecx
push ebx
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.00467f41
mov ecx, eax
call fcn.004b9fdc
lea ecx, [ebp + 0x84]
mov byte [ebp - 4], bl
call fcn.00497b76
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00497b76
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.00503ade
lea esp, [ebp + 0x314]
pop ebp
ret
Function at 0x41c3a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c049

Function at 0x41c3b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c1d8

Function at 0x41c7ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b950
mov eax, dword [0x435100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041a30f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c7ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c94a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427050
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4b5840]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d97c
mov ecx, dword [esi*4 + 0x4b5840]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41c943
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c943
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c943
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d97c
add esp, 0x14
test edx, edx
jl 0x41c943
jg 0x41c8b9
test eax, eax
jb 0x41c943
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c943
jl 0x41c8d3
cmp dword [ebp - 0x1008], eax
ja 0x41c943
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c8f1
test ebx, ebx
je 0x41c92a
cmp ecx, edi
jae 0x41c92a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c90b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c917
cmp byte [ecx + 1], 0xa
jne 0x41c917
inc ecx
jmp 0x41c917
movzx eax, al
movsx eax, byte [eax + 0x4353d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c8f1
cmp edx, ebx
jne 0x41c8f1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c948
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa09
leave
ret
Function at 0x41ce1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4b5840]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ce5a
cmp byte [ebx], 0xa
jne 0x41ce5a
or byte [eax + edi + 0x28], 4
jmp 0x41ce5f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cf5d
mov al, byte [edx]
cmp al, 0x1a
je 0x41cf3f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ce8e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ceb3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cebd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ce70
jmp 0x41cf5d
push 0
lea eax, [ebp - 0xc]
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 0x41cf3a
cmp dword [ebp - 0xc], 0
je 0x41cf3a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4b5840]
test byte [eax + edi + 0x28], 0x48
je 0x41cf14
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ceff
mov byte [esi], dl
jmp 0x41cf10
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b5840]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cf5d
cmp byte [ebp - 1], 0xa
jne 0x41cf23
cmp esi, ebx
jne 0x41cf23
mov byte [esi], 0xa
jmp 0x41cf5c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cf5d
mov byte [esi], 0xd
jmp 0x41cf5c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4b5840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cf59
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cf5d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cf66
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4b5840]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cfa9
cmp word [esi], dx
jne 0x41cfa9
or byte [edi + eax + 0x28], 4
jmp 0x41cfae
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d101
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d0e1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cff0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d026
cmp eax, edx
jae 0x41d032
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cfc8
jmp 0x41d101
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d0dd
cmp dword [ebp - 0x14], 0
je 0x41d0dd
mov eax, dword [ebx*4 + 0x4b5840]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d0b5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d07e
mov word [esi], cx
jmp 0x41d0b1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b5840]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4b5840]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b5840]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d101
pop ebx
cmp word [ebp - 4], bx
jne 0x41d0c6
cmp esi, dword [ebp + 0xc]
jne 0x41d0c6
mov word [esi], bx
jmp 0x41d0fe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d101
push 0xd
jmp 0x41d0fa
mov ecx, dword [ebx*4 + 0x4b5840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d0f8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d101
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x8638b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d4000]
push edi
or ebp, 0xffffffff
jmp 0x8638d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8638d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8638c8
mov eax, 1
add ebx, ebx
jne 0x8638eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8638fc
jne 0x86391b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86391b
dec eax
add ebx, ebx
jne 0x863908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8638e0
add ebx, ebx
jne 0x863917
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86396d
xor ecx, ecx
sub eax, 3
jb 0x863933
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8639a2
sar eax, 1
mov ebp, eax
jmp 0x86393e
add ebx, ebx
jne 0x86393e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86390c
inc ecx
add ebx, ebx
jne 0x86394c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86390c
add ebx, ebx
jne 0x863959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86394e
jne 0x86396a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86394e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86398c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86397e
jmp 0x8638ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86398c
add edi, ecx
jmp 0x8638ce
pop esi
mov edi, esi
mov ecx, 0x69d9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8639aa
cmp byte [edi], 0x13
jne 0x8639aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8639af
lea edi, [esi + 0x45a000]
mov eax, dword [edi]
or eax, eax
je 0x863a27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x467b94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x467cd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8639dc
mov ecx, edi
jns 0x863a0b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x467cd8]
or eax, eax
je 0x863a21
mov dword [ebx], eax
add ebx, 4
jmp 0x8639f9
call dword [esi + 0x467ce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x863a58
cmp al, 0xef
ja 0x863a4b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x863a2d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x863a3a
mov ebp, dword [esi + 0x467cdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x863a8c
sub esp, 0xffffff80
jmp 0x4af4c0
Function at 0x401050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x437564]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x401070
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x401090
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4010f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x437564]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x401110
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x401132
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4