joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77355093
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x773550dd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77355084
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77355093
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7775ad36
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x773550e4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7733bf5a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77355183
add edi, 4
add eax, 2
dec ecx
jne 0x773550c9
call 0x77355130
loope 0x77355126
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77355180
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77355191
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77355144
cmp eax, ecx
ja 0x77355144
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x773551ce
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x773551c4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733c439
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x6a6c3f92
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6b087014]
mov dword [ebp - 0xc], eax
jmp 0x6a6c3feb
jmp 0x6a6c4036
jmp 0x6a6c4081
jmp 0x6a6c40cc
jmp 0x6a6c4117
jmp 0x6a6c4162
jmp 0x6a6c41ad
jmp 0x6a6c41f8
jmp 0x6a6c4243
jmp 0x6a6c428e
jmp 0x6a6c42d9
jmp 0x6a6c4324
jmp 0x6a6c436f
jmp 0x6a6c43ba
jmp 0x6a6c4405
jmp 0x6a6c4450
jmp 0x6a6c449b
jmp 0x6a6c44e6
cmp dword [ebp - 0xc], 0
je 0x6a6c5a5a
mov eax, dword [0x6b087014]
mov dword [0x6b08700c], eax
jmp 0x6a6c4545
jmp 0x6a6c4590
jmp 0x6a6c45db
jmp 0x6a6c4626
jmp 0x6a6c4671
jmp 0x6a6c46bc
jmp 0x6a6c4707
jmp 0x6a6c4752
jmp 0x6a6c479d
jmp 0x6a6c47e8
jmp 0x6a6c4833
jmp 0x6a6c487e
jmp 0x6a6c48c9
jmp 0x6a6c4914
jmp 0x6a6c495f
jmp 0x6a6c49aa
jmp 0x6a6c49f5
jmp 0x6a6c4a40
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x6b087008], eax
jmp 0x6a6c4a9b
jmp 0x6a6c4ae6
jmp 0x6a6c4b31
jmp 0x6a6c4b7c
jmp 0x6a6c4bc7
jmp 0x6a6c4c12
jmp 0x6a6c4c5d
jmp 0x6a6c4ca8
jmp 0x6a6c4cf3
jmp 0x6a6c4d3e
jmp 0x6a6c4d89
jmp 0x6a6c4dd4
jmp 0x6a6c4e1f
jmp 0x6a6c4e6a
jmp 0x6a6c4eb5
jmp 0x6a6c4f00
jmp 0x6a6c4f4b
jmp 0x6a6c4f96
mov eax, dword [0x6b087008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x6a6c4fec
jmp 0x6a6c5037
jmp 0x6a6c5082
jmp 0x6a6c50cd
jmp 0x6a6c5118
jmp 0x6a6c5163
jmp 0x6a6c51ae
jmp 0x6a6c51f9
jmp 0x6a6c5244
jmp 0x6a6c528f
jmp 0x6a6c52da
jmp 0x6a6c5325
jmp 0x6a6c5370
jmp 0x6a6c53bb
jmp 0x6a6c5406
jmp 0x6a6c5451
jmp 0x6a6c549c
jmp 0x6a6c54e7
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x6b087004], eax
jmp 0x6a6c555f
jmp 0x6a6c55aa
jmp 0x6a6c55f5
jmp 0x6a6c5640
jmp 0x6a6c568b
jmp 0x6a6c56d6
jmp 0x6a6c5721
jmp 0x6a6c576c
jmp 0x6a6c57b7
jmp 0x6a6c5802
jmp 0x6a6c584d
jmp 0x6a6c5898
jmp 0x6a6c58e3
jmp 0x6a6c592e
jmp 0x6a6c5979
jmp 0x6a6c59c4
jmp 0x6a6c5a0f
jmp 0x6a6c5a5a
nop
leave
ret

Function at 0x6a6d8980
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6b086040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6a6d89e0
Function at 0x6a6d89e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6b087378]
test esi, esi
jle 0x6a6d8acd
mov edi, dword [0x6b08737c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6a6d8a14
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6a6d8ac6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6a6d8a00
mov dword [esp], eax
mov esi, eax
call fcn.6a6d9180
test eax, eax
mov edi, eax
je 0x6a6d8b0a
mov esi, dword [0x6b08737c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6a6d9290
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6b08737c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6a6d8aea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6a6d8abf
sub eax, 0x40
and eax, 0xffffffbf
je 0x6a6d8abf
mov eax, dword [esp + 0x20]
add ebx, dword [0x6b08737c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6a6d8ad4
add dword [0x6b087378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6a6d8a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6a6d8980
mov eax, dword [0x6b08737c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6a6d8980
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6a6d8980
lea esi, [esi]

Function at 0x6a6d8df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6b087388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6b087380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6a6d8e45
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6a6d8e3e
test esi, esi
je 0x6a6d8e3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6a6d8e20
mov dword [esp], 0x6b087388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100011c0
Capabilities:
Hash data with md5

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

Function at 0x10001bc0
Capabilities:
Print debug messages

Disassembly:
mov ecx, 0x1000f250
jmp 0x10002d50
push 0xffffffffffffffff
push 0x1000aa28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov ecx, 0xb0
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 8], 1
test eax, eax
jne 0x10002e09
mov eax, 0x1000c1a0
test eax, eax
je 0x10002dfe
mov al, byte [0x1000c1a0]
test al, al
je 0x10002dfe
push 0x1000c1a0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 2]
push ebx
call fcn.10003fd9
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 0xc], edi
je 0x10002df7
mov ecx, ebx
xor eax, eax
mov edx, ecx
push 0x1000c1a0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push str.CLateLoadBase::dll_LoadLibrary___Unable_to_allocate_memory_for_a_string_
jmp 0x10002e03
push str.CLateLoadBase::dll_LoadLibrary___We_need_a_valid_pszLibrary_string
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10001c00
Capabilities:
Print debug messages

Disassembly:
mov ecx, 0x1000f148
jmp 0x10003e10
push 0xffffffffffffffff
push 0x1000aa58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov ecx, 0x42
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 8], 1
test eax, eax
jne 0x10003ec9
mov eax, 0x1000c480
test eax, eax
je 0x10003ebe
mov al, byte [0x1000c480]
test al, al
je 0x10003ebe
push 0x1000c480
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 2]
push ebx
call fcn.10003fd9
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 0xc], edi
je 0x10003eb7
mov ecx, ebx
xor eax, eax
mov edx, ecx
push 0x1000c480
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push str.CLateLoadBase::dll_LoadLibrary___Unable_to_allocate_memory_for_a_string_
jmp 0x10003ec3
push str.CLateLoadBase::dll_LoadLibrary___We_need_a_valid_pszLibrary_string
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10001ea0
Capabilities:
Extract resource via kernel32 functions
Query environment variable
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x1000f518]
sub esp, 0x10c
and eax, 0xffff
push ebx
push ebp
push esi
push 0x1000c1a0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10001edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov edx, dword [0x1000f518]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x10001efd
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, dword [0x1000f518]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x10001f1a
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x10001f31
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
push str._windir__system32_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x2c]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
mov esi, eax
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
jne 0x10001fb2
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
Function at 0x10002730
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10002798
test ebp, ebp
je 0x1000278d
cmp byte [ebp], 0
je 0x1000278d
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 2]
push ebx
call fcn.10003fd9
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 0xc], edi
je 0x10002786
mov ecx, ebx
xor eax, eax
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10002798
push str.CLateLoadBase::dll_LoadLibrary___Unable_to_allocate_memory_for_a_string_
jmp 0x10002792
push str.CLateLoadBase::dll_LoadLibrary___We_need_a_valid_pszLibrary_string
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi], 0
je 0x100027a9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100027f0
push ebp
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x100027d1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esi + 4], eax
jne 0x100027f0
push str.Wow__that_should_NOT_have_happened___Could_you_tell_JED_how_you_did_it_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 4], 0x20000000
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x10002a30
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
xor ebx, ebx
mov dword [edi], ebx
cmp dword [esi], ebx
jne 0x10002a80
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10002a80
cmp byte [eax], bl
je 0x10002a80
cmp dword [esi + 4], ebx
jne 0x10002a80
push eax
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
jne 0x10002a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x10002a80
push str.Wow__that_should_NOT_have_happened___Could_you_tell_JED_how_you_did_it_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 4], 0x20000000
mov esi, dword [esi]
cmp esi, ebx
je 0x10002aa2
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, ebx
setne cl
inc ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebx
ret 8
pop edi
mov eax, ebx
pop esi
pop ebx
ret 8
Function at 0x10002e60
Capabilities:
Print debug messages

Disassembly:
push ecx
mov eax, dword [0x1000f51c]
cmp eax, 1
jne 0x10002fb2
mov eax, dword [0x1000f510]
mov dword [esp], eax
mov eax, dword [0x1000f4fc]
test eax, eax
jne 0x10002f95
mov eax, dword [0x1000f250]
push ebp
xor ebp, ebp
push esi
test eax, eax
mov dword [0x1000f4fc], ebp
jne 0x10002f71
mov esi, dword [0x1000f25c]
test esi, esi
je 0x10002f8d
cmp byte [esi], 0
je 0x10002f8d
mov eax, dword [0x1000f254]
test eax, eax
jne 0x10002f8d
test esi, esi
jne 0x10002f2a
push ebx
push edi
je 0x10002f14
cmp byte [esi], 0
je 0x10002f14
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 2]
push ebx
call fcn.10003fd9
mov edi, eax
add esp, 4
test edi, edi
mov dword [0x1000f25c], edi
je 0x10002f0d
mov ecx, ebx
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x1000f25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10002f1f
push str.CLateLoadBase::dll_LoadLibrary___Unable_to_allocate_memory_for_a_string_
jmp 0x10002f19
push str.CLateLoadBase::dll_LoadLibrary___We_need_a_valid_pszLibrary_string
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1000f250]
pop edi
test eax, eax
pop ebx
jne 0x10002f71
push esi
mov dword [0x1000f254], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x1000f250], eax
jne 0x10002f71
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1000f254], eax
jne 0x10002f68
push str.Wow__that_should_NOT_have_happened___Could_you_tell_JED_how_you_did_it_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x1000f254], 0x20000000
mov eax, dword [0x1000f250]
test eax, eax
je 0x10002f8d
push str.UDLL_TestPassword
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
xor ecx, ecx
test ebp, ebp
setne cl
inc ecx
mov dword [0x1000f4fc], ecx
mov dword [0x1000f4f8], ebp
pop esi
pop ebp
cmp dword [0x1000f4fc], 2
jne 0x10002fc7
mov edx, dword [esp + 8]
mov eax, dword [esp]
push 0
push edx
push eax
call dword [0x1000f4f8]
pop ecx
ret
cmp eax, 2
jne 0x10002fc7
mov eax, dword [esp + 8]
push eax
push eax
call fcn.10002ab0
add esp, 8
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x10003d70
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x10003df7
push edi
xor edi, edi
mov dword [esi + 0x9c], edi
mov eax, dword [esi]
test eax, eax
jne 0x10003dce
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10003dce
cmp byte [eax], 0
je 0x10003dce
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x10003dce
push eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
jne 0x10003dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esi + 4], eax
jne 0x10003dce
push str.Wow__that_should_NOT_have_happened___Could_you_tell_JED_how_you_did_it_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 4], 0x20000000
mov eax, dword [esi]
test eax, eax
je 0x10003df0
push str.UDLL_GetSerialNumber
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor eax, eax
test edi, edi
setne al
inc eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], edi
pop edi
mov ecx, dword [esi + 0x9c]
xor eax, eax
cmp ecx, 2
pop esi
sete al
ret
Function at 0x402a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x83f4
call fcn.0045b090
mov eax, dword [0x478080]
xor eax, esp
mov dword [esp + 0x83f0], eax
push ebx
push esi
push edi
push 0x23c
lea eax, [esp + 0xb4]
mov dword [esp + 0x14], edx
mov esi, ecx
push 0
push eax
mov dword [esp + 0x18], esi
call fcn.00413a80
add esp, 0xc
lea eax, [esp + 0x18]
push 0x98
push 0
push eax
call fcn.00413a80
add esp, 0xc
lea eax, [esp + 0x2f0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.UnRAR.dll
lea eax, [esp + 0x2f4]
push 0x104
push eax
call fcn.0042a640
add esp, 0xc
lea eax, [esp + 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x402b51
lea eax, [esp + 0x2f0]
push eax
push str.Error_loading_UnRAR.dll_from__s_n
call fcn.004017b0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x83f0]
xor ecx, esp
call fcn.004111f0
mov esp, ebp
pop ebp
ret
push str.RAROpenArchiveEx
lea eax, [esp + 0x3fc]
mov dword [esp + 0x1c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], 0x4000
mov dword [esp + 0x28], 1
mov dword [esp + 0x44], 0x402ee0
mov dword [esp + 0x48], 0
call esi
lea ecx, [esp + 0x18]
push ecx
call eax
mov ecx, dword [esp + 0x24]
mov edi, eax
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x402bc2
push 0
call fcn.00402cb0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x83f0]
xor ecx, esp
call fcn.004111f0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x38]
call fcn.00402e10
cmp dword [esp + 0x34], 1
jne 0x402be7
lea eax, [esp + 0x3f8]
push eax
push str._nComment:_n_ls_n
call fcn.004017b0
add esp, 8
push str.RARReadHeader
push ebx
call esi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x14], eax
push ecx
push edi
call eax
mov esi, eax
test esi, esi
jne 0x402c72
nop dword [eax]
nop dword [eax + eax]
lea eax, [esp + 0x1b4]
push eax
push str._nExtracting___45s
call fcn.004017b0
add esp, 8
push str.RARProcessFile
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push dword [esp + 0x14]
push 2
push edi
call eax
test eax, eax
jne 0x402c62
push 0x473074
call fcn.004017b0
add esp, 4
lea eax, [esp + 0xb0]
push eax
push edi
call dword [esp + 0x1c]
mov esi, eax
test esi, esi
je 0x402c10
jmp 0x402c72
mov edx, dword [esp + 0xc]
mov ecx, eax
push 2
call fcn.00402cb0
add esp, 4
mov edx, dword [esp + 0xc]
mov ecx, esi
push 1
call fcn.00402cb0
add esp, 4
push str.RARCloseArchive
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
mov ecx, dword [esp + 0x83fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004111f0
mov esp, ebp
pop ebp
ret
Function at 0x403160
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x478080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
call fcn.0042a660
mov esi, eax
add esp, 4
test esi, esi
je 0x4031a0
push esi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4031b1
push esi
call fcn.0042a020
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004111f0
mov esp, ebp
pop ebp
ret
mov dl, 0xb6
mov dword [ebp - 0x38], 0xdff2eab6
mov dword [ebp - 0x34], 0xc2d5d3c4
xor eax, eax
mov byte [ebp - 0x30], 0
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x37]
xor cl, dl
mov byte [eax + 0x47a93c], cl
inc eax
cmp eax, 7
jb 0x4031d0
mov ecx, 0x47a93c
mov byte [0x47a943], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4031f1
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x2c]
push 0x47a93c
push eax
call fcn.00419050
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004111f0
mov esp, ebp
pop ebp
ret

Function at 0x403230
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x478080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
call fcn.0042a660
add esp, 4
mov esi, eax
push esi
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4032e7
test esi, esi
je 0x4032e7
mov dl, 0xba
mov dword [ebp - 0x38], 0xd3fee6ba
mov dword [ebp - 0x34], 0xced9dfc8
xor eax, eax
mov dword [ebp - 0x30], 0x8b8be2
mov cl, byte [ebp + eax - 0x37]
xor cl, dl
mov byte [eax + 0x47a8e4], cl
inc eax
cmp eax, 0xa
jb 0x403284
mov ecx, 0x47a8e4
mov byte [0x47a8ee], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032a5
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x2c]
push 0x47a8e4
push eax
call fcn.00419050
add esp, 0xc
push 0x472d54
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
lea ecx, [ebp - 0x2c]
push ecx
push eax
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004111f0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004111f0
mov esp, ebp
pop ebp
ret