joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x918
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x910], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x92c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x93c]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b56
test bl, 1
jne 0x402b56
push 0x3ff
xor esi, esi
lea eax, [esp + 0x529]
push esi
push eax
mov byte [esp + 0x530], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x407a40
push str._sRecord.dll
lea ecx, [esp + 0x52c]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
lea edx, [esp + 0x534]
push 0x40629c
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 0x18
test bl, 0x10
mov ebx, dword [sym.imp.MSVCR80.dll_fprintf]
mov edi, eax
je 0x402a6e
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00402560
add esp, 0x10
jmp 0x402b36
mov eax, ebp
call fcn.00404da0
cmp eax, 0x6400000
jge 0x402b36
lea esi, [esp + 0x1c]
call fcn.00404fb0
mov eax, ebp
mov ecx, esi
mov dword [esp + 0x934], 0
call fcn.00405040
test eax, eax
je 0x402b19
mov edx, esi
push edx
call fcn.00402010
mov esi, eax
add esp, 4
cmp esi, 0xa
je 0x402abd
cmp esi, 0xb
je 0x402abd
cmp esi, 0xc
jne 0x402b19
add dword [esp + 0x14], 1
mov ecx, esi
lea edx, [esp + 0x1c]
call fcn.004023f0
test eax, eax
je 0x402af2
add dword [esp + 0x18], 1
test edi, edi
je 0x402b19
cmp esi, 0xb
mov eax, 0x40625c
jbe 0x402ae9
mov eax, 0x406260
push ebp
push eax
push str.TREAT___s_OK____s_n
jmp 0x402b0c
test edi, edi
je 0x402b19
cmp esi, 0xb
mov eax, 0x40625c
jbe 0x402b05
mov eax, 0x406260
push ebp
push eax
push str.TREAT___s_FAIL__s_n
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 0x14
lea eax, [esp + 0x1c]
call fcn.00404ff0
lea eax, [esp + 0x1c]
mov dword [esp + 0x934], 0xffffffff
call fcn.00404ff0
test edi, edi
je 0x402b56
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.__FILES:_d___TREAT:_d___n_n
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
mov ecx, dword [esp + 0x92c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x910]
xor ecx, esp
call fcn.00405321
add esp, 0x924
ret
Function at 0x403280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x918
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x910], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x92c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x93c]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40342a
test bl, 1
jne 0x40342a
push 0x3ff
xor esi, esi
lea eax, [esp + 0x529]
push esi
push eax
mov byte [esp + 0x530], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x407a40
push str._sRecord.dll
lea ecx, [esp + 0x52c]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
lea edx, [esp + 0x534]
push 0x40629c
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 0x18
test bl, 0x10
mov ebx, dword [sym.imp.MSVCR80.dll_fprintf]
mov edi, eax
je 0x40335e
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00402e70
add esp, 0x10
jmp 0x40340a
mov eax, ebp
call fcn.00404da0
cmp eax, 0x3200000
jge 0x40340a
lea esi, [esp + 0x1c]
call fcn.00404fb0
mov eax, ebp
mov ecx, esi
mov dword [esp + 0x934], 0
call fcn.00405040
test eax, eax
je 0x4033ed
mov edx, esi
push edx
call fcn.00402010
add esp, 4
cmp eax, 0xb
je 0x4033ab
cmp eax, 0xc
je 0x4033ab
cmp eax, 1
jne 0x4033ed
mov esi, 1
add dword [esp + 0x14], esi
mov ecx, eax
lea edx, [esp + 0x1c]
call fcn.00402b80
test eax, eax
je 0x4033d3
add dword [esp + 0x18], esi
test edi, edi
je 0x4033ed
push ebp
push str.INJECT_OK____s_n
jmp 0x4033dd
test edi, edi
je 0x4033ed
push ebp
push str.INJECT_FAIL__s_n
push edi
call ebx
add esp, 0xc
push edi
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
lea eax, [esp + 0x1c]
call fcn.00404ff0
lea eax, [esp + 0x1c]
mov dword [esp + 0x934], 0xffffffff
call fcn.00404ff0
test edi, edi
je 0x40342a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.__FILES:_d___INJECT:_d___n_n
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
mov ecx, dword [esp + 0x92c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x910]
xor ecx, esp
call fcn.00405321
add esp, 0x924
ret
Function at 0x404260
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
push 0xff
lea eax, [esp + 0x19]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov byte [esp + eax + 0x14], al
add eax, 1
cmp eax, 0x100
jb 0x4042a0
xor ecx, ecx
xor esi, esi
xor edx, edx
mov eax, ecx
div dword [esp + 0x124]
mov bl, byte [esp + ecx + 0x14]
movzx eax, bl
add eax, esi
add ecx, 1
movzx edx, byte [edx + edi]
add edx, eax
and edx, 0xff
cmp ecx, 0x100
mov esi, edx
movzx edx, byte [esp + esi + 0x14]
mov byte [esp + ecx + 0x13], dl
mov byte [esp + esi + 0x14], bl
jb 0x4042b2
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
test edx, edx
jbe 0x404357
mov ecx, ebp
mov ebp, dword [esp + 0x11c]
sub ebp, ecx
jmp 0x404310
add esi, 1
and esi, 0xff
mov al, byte [esp + esi + 0x14]
movzx ebx, al
add ebx, edi
and ebx, 0xff
mov edi, ebx
movzx ebx, byte [esp + edi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], al
movzx ebx, byte [esp + esi + 0x14]
add ebx, eax
and ebx, 0xff
movzx eax, byte [esp + ebx + 0x14]
xor al, byte [ecx + ebp]
add ecx, 1
sub edx, 1
mov byte [ecx - 1], al
jne 0x404310
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405321
add esp, 0x108
ret

Function at 0x4044a0
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x409a90
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
push 0x409a90
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4044e6
push str.c:windows_temp_
push 0x400
push 0x409a90
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov eax, 0x409a90
ret
mov eax, 0x409a90
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4044f0
sub eax, edx
cmp byte [eax + 0x409a8f], 0x5c
jne 0x404521
mov eax, 0x409a90
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404510
sub eax, edx
mov byte [eax + 0x409a8f], cl
push 0x5c
push 0x409a90
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
je 0x4044c8
mov ecx, dword [str.temp_]
mov dword [eax + 1], ecx
mov dx, word [0x406370]
mov word [eax + 5], dx
mov eax, 0x409a90
ret

Function at 0x404550
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x409690
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
push 0x409690
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x404596
push str.c:windows_system32_
push 0x400
push 0x409690
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov eax, 0x409690
ret
mov eax, 0x409690
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4045a0
sub eax, edx
cmp byte [eax + 0x40968f], 0x5c
je 0x4045d4
push edi
mov edi, 0x409690
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4045c0
mov ax, word [0x406354]
mov word [edi], ax
pop edi
mov eax, 0x409690
ret
Function at 0x4045e0
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x409290
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
push 0x409290
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x404626
push str.c:windowsdebug_
push 0x400
push 0x409290
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov eax, 0x409290
ret
mov eax, 0x409290
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404630
sub eax, edx
cmp byte [eax + 0x40928f], 0x5c
jne 0x404661
mov eax, 0x409290
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404650
sub eax, edx
mov byte [eax + 0x40928f], cl
push 0x5c
push 0x409290
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
je 0x404608
mov ecx, dword [str.debug_]
mov dword [eax + 1], ecx
mov dx, word [0x4063a4]
mov word [eax + 5], dx
mov cl, byte [0x4063a6]
mov byte [eax + 7], cl
mov eax, 0x409290
ret

Function at 0x4046a0
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x409e90
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x409e90
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4046cd
jmp fcn.004044a0
mov eax, 0x409e90
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4046d5
sub eax, edx
cmp byte [eax + 0x409e8f], 0x5c
je 0x404706
push edi
mov edi, 0x409e90
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4046f2
mov ax, word [0x406354]
mov word [edi], ax
pop edi
mov eax, 0x409e90
ret
Function at 0x404b40
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Encode data using xor
Get common file path

Disassembly:
sub esp, 0x994
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x98c], eax
push ebx
push edi
push 0x7ff
lea eax, [esp + 0x195]
push 0
push eax
mov byte [esp + 0x19c], 0
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x99]
push 0
push ecx
mov byte [esp + 0xa0], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x103
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov bl, 0x9d
jne 0x404c52
mov cl, 0xdd
mov al, 0x6f
mov byte [esp + 0x73], cl
mov byte [esp + 0x78], cl
mov byte [esp + 0x71], 9
mov byte [esp + 0x72], al
mov byte [esp + 0x74], 0x3c
mov byte [esp + 0x75], 0x4c
mov byte [esp + 0x76], 0xec
mov byte [esp + 0x77], 0x5c
mov byte [esp + 0x79], bl
mov byte [esp + 0x7a], al
mov byte [esp + 0x7b], bl
mov byte [esp + 0x7c], 0x3d
mov byte [esp + 0x7d], bl
mov byte [esp + 0x7e], 0xed
mov byte [esp + 0x7f], 0xfc
mov byte [esp + 0x80], 0x7c
mov byte [esp + 0x81], 0x99
mov byte [esp + 0x82], 0x89
mov byte [esp + 0x83], al
mov byte [esp + 0x84], 0xaa
mov byte [esp + 0x70], 0x63
lea ecx, [esp + 0x70]
mov al, byte [ecx + 1]
add ecx, 1
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x404c26
xor eax, eax
jmp 0x404c40
mov cl, byte [esp + eax + 0x70]
mov byte [esp + eax + 0x88], cl
add eax, 1
test cl, cl
jne 0x404c40
lea eax, [esp + 0x88]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c60
sub eax, edx
cmp byte [esp + eax + 0x87], 0x5c
je 0x404c93
lea edi, [esp + 0x88]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404c80
mov ax, word [0x406354]
mov word [edi], ax
mov cl, 0x9c
mov al, 0xa8
mov byte [esp + 0x62], cl
mov byte [esp + 0x6b], cl
mov byte [esp + 0x61], bl
mov byte [esp + 0x63], 0x7c
mov byte [esp + 0x64], 0xec
mov byte [esp + 0x65], 0x48
mov byte [esp + 0x66], 0xfc
mov byte [esp + 0x67], 0x2d
mov byte [esp + 0x68], 0xfc
mov byte [esp + 0x69], al
mov byte [esp + 0x6a], 0x58
mov byte [esp + 0x6c], al
mov byte [esp + 0x6d], pe_nt_image_headers32
mov byte [esp + 0x6e], bl
mov byte [esp + 0x6f], 0xaa
mov byte [esp + 0x60], 0x25
lea ecx, [esp + 0x60]
mov al, byte [ecx + 1]
add ecx, 1
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x404ce5
push esi
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x19c]
push 0x800
push eax
call dword [sym.imp.MSVCR80.dll_sprintf_s]
push 0x40
lea ecx, [esp + 0x34]
push 0
push ecx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0x20
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x1b0]
push edx
push 0
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x994]
pop edi
pop ebx
xor ecx, esp
call fcn.00405321
add esp, 0x994
ret
Function at 0x404de0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x20], 0
call dword [0x409270]
mov esi, eax
cmp esi, 0xffffffff
je 0x404e24
push 0
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x404e2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x404e1e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
add esp, 8
ret

Function at 0x404f00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [0x409270]
mov edi, eax
cmp edi, 0xffffffff
je 0x404f9a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x404f9a
test esi, esi
jne 0x404f51
mov eax, dword [esp + 0x14]
pop edi
mov dword [ebp], esi
mov dword [eax], esi
pop esi
mov eax, 1
pop ebp
ret
push esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
je 0x404f9a
push esi
push 0
push edi
call sub.MSVCR80.dll_memset
push esi
push edi
mov eax, ebx
call fcn.00404de0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x404fa0
mov ecx, dword [ebp]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [ebp], 0
mov dword [edx], 0
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
ret

Function at 0x405300
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [eax]
rol cl, 4
xor cl, 0xaa
mov byte [eax], cl
je 0x405320
mov edx, eax
mov edi, edi
mov cl, byte [edx + 1]
add edx, 1
rol cl, 4
xor cl, 0xaa
mov byte [edx], cl
jne 0x405310
ret

Function at 0x405321
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40532b
repz ret
jmp fcn.0040569a
Function at 0xd94058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d941a8
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 0xd9407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9406a
add dl, dl
jne 0xd94089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd940dc
xor eax, eax
add dl, dl
jne 0xd94096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9417d
add dl, dl
jne 0xd940a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd940b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd940bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd940c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd940d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd94075
mov eax, 1
add dl, dl
jne 0xd940ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd940f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd940e1
sub eax, ebx
mov ebx, 1
jne 0xd94128
mov ecx, 1
add dl, dl
jne 0xd9410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd94119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd94105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd94075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd94136
cmp eax, 0x7d00
jae 0xd9416d
cmp eax, 0x500
jb 0xd94168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd94075
cmp eax, 0x7f
ja 0xd94170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd94075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9419e
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 0xd94075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x23582185
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section._RDATA
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xc882d29
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6fb167ac
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x62556504
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x59c8c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x125000]
push edi
or ebp, 0xffffffff
jmp 0x59c8e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59c8e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c8d8
mov eax, 1
add ebx, ebx
jne 0x59c8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59c90c
jne 0x59c92b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c92b
dec eax
add ebx, ebx
jne 0x59c918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59c8f0
add ebx, ebx
jne 0x59c927
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59c97d
xor ecx, ecx
sub eax, 3
jb 0x59c943
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59c9b2
sar eax, 1
mov ebp, eax
jmp 0x59c94e
add ebx, ebx
jne 0x59c94e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c91c
inc ecx
add ebx, ebx
jne 0x59c95c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59c91c
add ebx, ebx
jne 0x59c969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59c95e
jne 0x59c97a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59c95e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59c99c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59c98e
jmp 0x59c8de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59c99c
add edi, ecx
jmp 0x59c8de
pop esi
mov edi, esi
mov ecx, 0x9b4a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59c9ba
cmp byte [edi], 0x16
jne 0x59c9ba
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 0x59c9bf
lea edi, [esi + 0x198000]
mov eax, dword [edi]
or eax, eax
je 0x59ca2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a33c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a34d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59c9ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a34d8]
or eax, eax
je 0x59ca28
mov dword [ebx], eax
add ebx, 4
jmp 0x59ca09
call dword [esi + 0x1a34d4]
mov ebp, dword [esi + 0x1a34dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x59ca62
sub esp, 0xffffff80
jmp 0x51f5b8
Function at 0x401d50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401d9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d94
test esi, esi
je 0x401d94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d70
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020a4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40200e
cmp eax, 4
jne 0x402030
test esi, esi
je 0x402022
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402014
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40206f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402061
cmp ecx, 0x40
je 0x402022
cmp ecx, 4
je 0x402022
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f80
lea esi, [esi]