joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8488
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a84f3
cmp byte [ebx + 0xd3], 0
jne 0x4a84f3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406af8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a84e0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a8500
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004069bc
jmp 0x4a8500
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004069bc
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a9d28
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a9d96
mov eax, esi
call fcn.00482354
test al, al
je 0x4a9d96
mov eax, dword [ebx + 0x84]
call fcn.00481fa8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a9d96
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a9d8a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00481fa8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00478f7c
jmp 0x4a9d96
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a9b60
pop esi
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, reloc.avifil32.dll_AVIStreamOpenFromFileA
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x100d302
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, 0xaca85529
sub eax, dword [esp + 4]
jne 0x100d338
mov ah, 0x63
test al, 0xcc
mov esi, ebx
mov al, 0x39
mov edi, ebx
jmp 0x100869c
add esi, dword [edx + 0x24]
nop
mov eax, 0x53d03713
add edi, dword [edx + 0x1c]
lea esi, [esi + ecx*2]
push ebx
not edx
cmp edx, 0xce3a7614
movzx eax, word [esi]
jmp 0x100d3ab
nop
lea edi, [eax + ebx]
cmp ecx, dword [edx + 0x18]
je 0x100d2f6
jmp 0x10087bc
and eax, 0
clc
nop
imul eax, eax, 0xf
xor esi, 0
push eax
xor esi, 0
movzx eax, byte [edi]
jmp 0x100d215
sub dword [esp], eax
not cl
not cl
and dh, 0xff
test cl, cl
xchg edx, eax
xchg edx, eax
inc edi
mov cl, cl
cmp byte [edi], 0
pop eax
xchg ebp, ecx
xchg ebp, ecx
ja 0x10087c1
jmp 0x100865b
nop
lea esi, [edx - 0x156bc15e]
mov esi, ebx
dec ah
mov eax, ebx
dec cl
add eax, dword [ebx + 0x3c]
add cl, ch
nop
nop
clc
add edx, dword [eax + 0x78]
jmp 0x100d31b
ret
mov edx, ebx
jmp 0x100d2cc
mov ecx, edx
and cl, 0x35
not edi
or edi, 0x88e8849f
xchg ch, ch
clc
add esi, dword [edx + 0x20]
or ecx, 0xffffffff
nop
xchg dh, dh
xchg dh, dh
or dh, dh
lodsd eax, dword [esi]
inc ecx
jmp 0x10086fd
pop esi
nop
add esi, dword [edi + eax*4]
ret 4
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x671c710e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x73d95273
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4010b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call edi
push 0x30
mov dword [ebp - 0x20], eax
call edi
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 3
je 0x4010f9
push str.Wrong_input_n
call fcn.00401010
add esp, 4
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
push 0x402148
push ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 8], eax
call esi
push 0x402148
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call esi
add esp, 0x10
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x40127d
test eax, eax
je 0x40127d
mov ebx, dword [ebp - 0x20]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
push ebx
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call esi
mov esi, dword [ebx + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
mov ebx, dword [eax + 0x14]
lea eax, [esi + 1]
push eax
mov dword [ebp + 8], ebx
call edi
lea ecx, [ebx + 1]
mov dword [ebp - 0x1c], eax
push ecx
call edi
push dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push 1
push edi
call esi
push dword [ebp - 0x14]
push dword [ebp + 8]
push 1
push ebx
call esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call esi
push dword [ebp - 0x14]
call esi
mov esi, dword [sym.imp.plist.dll_plist_from_xml]
add esp, 0x40
cmp dword [edi], 0x696c7062
jne 0x4011cb
cmp dword [edi + 4], 0x30307473
jne 0x4011cb
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push edi
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x4011d5
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push edi
call esi
add esp, 0xc
cmp dword [ebx], 0x696c7062
jne 0x4011f9
cmp dword [ebx + 4], 0x30307473
jne 0x4011f9
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.plist.dll_plist_from_bin]
jmp 0x401203
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push ebx
call esi
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x401264
cmp dword [ebp - 8], 0
je 0x401264
push str.PList_parsing_succeeded_n
call fcn.00401010
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00401040
push dword [ebp - 4]
mov esi, dword [sym.imp.plist.dll_plist_free]
movsx edi, al
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call esi
push ebx
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 0xc]
call esi
add esp, 0x1c
xor eax, eax
test edi, edi
sete al
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push str.PList_parsing_failed_n
call fcn.00401010
add esp, 4
mov eax, 3
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push str.File_does_not_exists_n
call fcn.00401010
add esp, 4
mov eax, 2
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00401750
add esp, 8
lea edx, [ebp - 0x104]
push edx
call fcn.00402990
add esp, 4
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x406044
call fcn.00401770
add esp, 4
add eax, 1
push eax
push 0x406044
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401770
add esp, 4
mov edx, dword [ebp + 8]
add edx, eax
push edx
call fcn.00402e30
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.00401770
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401770
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00402e30
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401770
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401770
add esp, 4
mov edx, dword [ebp + 8]
add edx, eax
push edx
call fcn.00402e30
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401fd0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x401ff3
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret
Function at 0x402310
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00402570
add esp, 4
and eax, 0xff
test eax, eax
je 0x402339
mov eax, 1
jmp 0x40255c
mov ecx, dword [0x406080]
add ecx, 0x600
mov dword [ebp - 0x324], ecx
mov byte [ebp - 0x31c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x31b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x20c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x104]
push edx
push 0x104
call fcn.00402760
add esp, 8
mov byte [ebp - 0x31c], 0x5c
push 0xa
lea eax, [ebp - 0x31b]
push eax
call fcn.00403400
add esp, 8
push 0x42ea4c
lea ecx, [ebp - 0x31c]
push ecx
call fcn.00402630
add esp, 8
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.00402630
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
jne 0x402408
xor eax, eax
jmp 0x40255c
push 5
push 0
call fcn.00402cf0
add esp, 8
shl eax, 0x14
add eax, 0x4a
mov dword [ebp - 0x218], eax
mov edx, dword [0x406080]
mov eax, dword [edx + 0x5fc]
mov dword [ebp - 0x328], eax
push 0
push 0
mov ecx, dword [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x328]
shr eax, 1
push eax
push 0x46
call fcn.00402cf0
add esp, 8
mov dword [ebp - 0x214], eax
push 0
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x324]
add eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402493
jmp 0x4024c8
push 1
push 0
push 0x100048
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0xffffffff
jne 0x4024ba
jmp 0x4024c8
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x218]
jb 0x40244a
push 0
push 0
push 0
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x328]
push eax
mov ecx, dword [ebp - 0x324]
push ecx
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x40253e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x32c], eax
lea edx, [ebp - 0x104]
push edx
call fcn.00401fd0
add esp, 4
jmp 0x402557
lea eax, [ebp - 0x104]
push eax
push 0x42ea48
mov ecx, dword [ebp + 8]
push ecx
call dword [0x42ece0]
add esp, 0xc
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

Function at 0x402760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jb 0x40279b
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402570
add esp, 4
and eax, 0xff
test eax, eax
jne 0x4027a9
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403af0
add esp, 4
push 0x42ea40
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402a80
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4027e9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.004025f0
add esp, 8
mov byte [eax], 0
mov esp, ebp
pop ebp
ret
Function at 0x402ee0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push 0x42ea3c
push 0x71
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x274]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x402f4d
cmp dword [ebp - 0x264], 0x46
jae 0x402f52
jmp 0x4030d0
push 0x104
lea eax, [ebp - 0x258]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x258]
push ecx
call fcn.00401f80
add esp, 4
sub eax, 1
mov dword [ebp - 4], eax
push 0x2e
mov edx, dword [ebp - 4]
push edx
call fcn.004025f0
add esp, 8
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x402fa1
mov eax, dword [ebp - 0x260]
mov byte [eax], 0
push 0x42ea34
lea ecx, [ebp - 0x258]
push ecx
call fcn.00402630
add esp, 8
lea edx, [ebp - 0x150]
push edx
push 0x14a
call fcn.00402760
add esp, 8
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.00402630
add esp, 8
lea edx, [ebp - 0x150]
push edx
call fcn.00401fd0
add esp, 4
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x40301e
jmp 0x4030d0
push 0
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x268], 0
push 0x42ea28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x403098
push 0x42ea10
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x4030b6
push 1
lea edx, [ebp - 0x150]
push edx
push 0
push 0
call dword [ebp - 0x268]
jmp 0x4030d0
push 5
push 0
push 0
lea eax, [ebp - 0x150]
push eax
push 0x42ea08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret
Function at 0x4030e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4049a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
call fcn.00401750
add esp, 8
lea edx, [ebp - 0x3e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x403164
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x403164
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x403164
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4031df
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x4031d0
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
lea edx, [ebp - 0x3e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4031bb
push 0
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4031b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4031b9
xor al, al
jmp 0x4031ff
jmp 0x4031ca
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
cmp ecx, 0x10
je 0x4031ca
xor al, al
jmp 0x4031ff
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
push eax
call dword [0x42ece4]
mov dword [ebp - 0x14], eax
jmp 0x403164
jmp 0x4031f6
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403380
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x403398
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x4033f2
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x4033b9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x4033e3
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x4033d9
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x4033e1
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x4033b0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x42ed00], ecx
jmp 0x40338f
mov esp, ebp
pop ebp
ret
Function at 0xd5de00
Capabilities:
Encode data using xor

Disassembly:
add cl, byte [ecx + 0x670392f9]
adc al, 0
add bl, ch
jmp 0xd5de0a
add byte [esp + eax], dh
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
jmp 0xd5de0a
pushal
call 0xd5de10
pop ebp
sub ebp, 0x10
sub ebp, 0x95de00
jmp 0xd5de26
mov eax, 0x95de00
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e1
mov edx, 0x6cd5d32f
xor byte [eax], dl
inc eax
dec ecx
jne 0xd5de3d
jmp 0xd5de50
movsb byte es:[edi], byte [esi]
loop 0xd5ddf7
cmpsb byte [esi], byte es:[edi]
adc ebp, dword [edi]
das
das
scasb al, byte es:[edi]
out dx, al
xlatb
das
das
das
sub al, 0xe2
xchg edi, eax
sub ebp, dword [edi]
das
das
xchg ebp, eax
pop es
das
das
das
fmul st(5)
sub al, 0xe7
movsb byte es:[edi], byte [esi]
scasb al, byte es:[edi]
and ebp, dword [edi]
das
das
sub al, 0xea
jg 0xd5def7
inc edi
mov ebx, 0x472f30d2
inc ebp
iretd
stosd dword es:[edi], eax
das
das
das
movsb byte es:[edi], byte [esi]
xchg edx, eax
daa
das
das
das
scasb al, byte es:[edi]
ficom word [edi]
invalid

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0x3b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 0
jne 0x41825a
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 eax, ebx
loop 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x1811c]
popal
jmp 0x40a630