joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b0c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call fcn.0040347c
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x40b191
push ebx
push pe_nt_image_headers32
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x40b117
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x40b175
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40b175
push ebp
push edi
call fcn.00408bb3
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40b161
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x40b17f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b17f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x40b191
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x40b434
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov esi, ecx
call dword [0xb2ff3c]
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov edi, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x414], ebx
je 0x40b4b9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401035
add esp, 0xc
test eax, eax
jl 0x40b4b9
mov esi, dword [ebp - 8]
cmp esi, 0x400
jg 0x40b4a1
push esi
call fcn.00402502
test al, al
pop ecx
je 0x40b4a1
mov eax, esi
call fcn.00413e60
mov eax, esp
jmp 0x40b4aa
push esi
lea ecx, [ebp - 4]
call fcn.0040270f
push edi
push esi
push dword [ebp + 8]
push eax
call fcn.00401099
cmp eax, ebx
jne 0x40b4ec
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x40b4d2
lea ecx, [ebp - 0x414]
call fcn.00409756
lea ecx, [ebp - 4]
call fcn.0040233c
mov eax, 0x8007000e
lea esp, [ebp - 0x420]
pop edi
pop esi
pop ebx
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x40b508
call fcn.00401245
mov esi, eax
jmp 0x40b5c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40b525
call fcn.00401245
jmp 0x40b5b9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40b51b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40b571
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x40b55d
lea ecx, [ebp - 0x414]
call fcn.00409756
mov esi, 0x8007000e
lea ecx, [ebp - 4]
call fcn.0040233c
mov eax, esi
jmp 0x40b4df
push eax
lea ecx, [ebp - 0x414]
call fcn.0040a57e
cmp dword [ebp - 0x414], 0
jne 0x40b58d
mov esi, 0x8007000e
jmp 0x40b5bb
push esi
push ebx
push esi
push dword [ebp - 0x414]
call fcn.00402bf4
mov eax, dword [ebp - 0x414]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], 0
push dword [ebp - 0x414]
lea ecx, [ebp - 0x10]
call fcn.0040b226
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x40b562
lea ecx, [ebp - 0x414]
call fcn.00409756
jmp 0x40b562
Function at 0x40c190
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 6
mov ebx, ecx
ja 0x40c1a4
pop ebp
xor eax, eax
pop ebx
ret 0xc
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
je 0x40c2aa
movzx edx, word [esi + 4]
mov edi, edx
and edi, 0xff
ja 0x40c1c9
cmp dword [esi], 0
jbe 0x40c2aa
cmp di, 0x100
ja 0x40c2aa
mov ecx, dword [esi]
mov eax, edx
and eax, 0xff
lea ecx, [eax + ecx + 6]
cmp ecx, ebp
ja 0x40c2aa
test di, di
je 0x40c1f9
cmp byte [eax + esi + 5], 0
jne 0x40c2aa
test edx, 0x2000
je 0x40c315
movzx edx, byte [esi + 4]
mov ecx, dword [0xb2f004]
mov edi, edx
and edi, 0xff
mov ebp, dword [edi + esi + 6]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [edi + ebp + 6]
push edx
mov dword [esp + 0x20], 0
call fcn.0040d740
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x40c2aa
lea edx, [esp + 0x18]
push edx
movzx edx, byte [esi + 4]
lea edx, [edx + ebp + 6]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x40c29e
movzx ecx, byte [esi + 4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea eax, [ecx + edx + 6]
mov ecx, dword [esi]
push eax
sub ecx, 4
push ecx
lea edx, [edi + esi + 0xa]
push edx
mov dword [esp + 0x2c], ebp
call fcn.0040d970
add esp, 0x10
test eax, eax
je 0x40c2b3
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esi]
mov edi, dword [esp + 0x18]
mov dword [edi], eax
mov cx, word [esi + 4]
mov word [edi + 4], cx
mov edx, dword [esp + 0x1c]
and word [edi + 4], 0xdfff
mov dword [edi], edx
movzx eax, byte [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
add esi, 6
add ecx, 6
push esi
push ecx
call fcn.004132d0
add esp, 0xc
mov word [ebx + 8], 2
movzx edx, byte [edi + 4]
mov eax, dword [edi]
pop edi
lea ecx, [edx + eax + 6]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop esi
mov dword [ebx + 4], eax
pop ebp
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xc], edx
mov eax, 1
pop ebx
ret 0xc
cmp dword [esp + 0x1c], 0
lea edi, [ebx + 4]
push edi
je 0x40c330
mov edx, dword [0xb2f004]
push edx
push ecx
push esi
call fcn.0040d7c0
jmp 0x40c33d
mov eax, dword [0xb2f004]
push eax
push ecx
push esi
call fcn.0040d850
mov edi, dword [edi]
add esp, 0x10
test edi, edi
je 0x40c2aa
movzx edx, byte [esi + 4]
mov eax, dword [esi]
mov ecx, dword [edi]
lea ebp, [ebx + 0xc]
push ebp
lea edx, [edx + eax + 6]
mov eax, dword [ecx + 0x24]
push edx
push edi
call eax
cmp dword [ebp], 0
je 0x40c2aa
mov word [ebx + 8], 2
movzx ecx, byte [esi + 4]
mov edx, dword [esi]
pop edi
pop esi
lea eax, [ecx + edx + 6]
mov dword [ebx + 0x10], eax
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x412c6c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0xb2ffb4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00412bab
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004141a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x412cbb
cmp dword [ebp - 0x1c], 5
jb 0x412cd3
jmp 0x412ccf
cmp dword [ebp - 0x10], 1
jne 0x412cd3
cmp dword [ebp - 0x1c], 4
ja 0x412ccf
jne 0x412cd3
cmp dword [ebp - 0x18], 0
jbe 0x412cd3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0xb28d28
call fcn.00403839
test eax, eax
jge 0x412cf4
mov byte [0xb22024], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414862
add ebp, 0x78
leave
ret

Function at 0x413091
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0xb2216c], 0
push esi
jne 0x413004
call fcn.00412f2f
test eax, eax
je 0x413047
mov eax, dword [0xb2216c]
cmp eax, 1
jne 0x413025
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x413047
pop esi
ret
push eax
call dword [0xb22174]
test eax, eax
jne 0x41308f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41304b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0xb2216c]
call dword [0xb22174]
mov edi, eax
test edi, edi
je 0x413072
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41308e
lea edi, [esi + 0xff0]
push esi
push dword [0xb2216c]
call dword [fcn.00b22170]
add esi, 0x10
cmp esi, edi
jb 0x413078
mov eax, esi
pop edi
pop esi
ret
jmp 0x412ff1

Function at 0x414862
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xb2ffb4]
jne 0x41486c
repz ret
jmp fcn.004194cb
Function at 0x41af3f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416b35
xor ebx, ebx
cmp dword [0xb22c6c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41b014
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41af7f
xor eax, eax
jmp 0x41b0d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xb29650
push edi
call esi
cmp eax, ebx
je 0x41af78
push eax
call fcn.00416ad2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0xb22c6c], eax
call esi
push eax
call fcn.00416ad2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0xb22c70], eax
call esi
push eax
call fcn.00416ad2
mov dword [0xb22c74], eax
lea eax, [ebp - 8]
push eax
call fcn.00413f3f
test eax, eax
pop ecx
pop ecx
je 0x41afe2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415e9f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41b014
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416ad2
cmp eax, ebx
pop ecx
mov dword [0xb22c7c], eax
je 0x41b014
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416ad2
pop ecx
mov dword [0xb22c78], eax
mov eax, dword [0xb22c78]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41b08d
cmp dword [0xb22c7c], esi
je 0x41b08d
push eax
call fcn.00416b3e
pop ecx
call eax
cmp eax, ebx
je 0x41b05a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0xb22c7c]
call fcn.00416b3e
pop ecx
call eax
test eax, eax
je 0x41b05a
test byte [ebp - 0x18], 1
jne 0x41b08d
lea eax, [ebp - 0xc]
push eax
call fcn.00413f76
test eax, eax
pop ecx
je 0x41b075
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415e9f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41b084
or dword [ebp + 0x10], 0x200000
jmp 0x41b0be
or dword [ebp + 0x10], 0x40000
jmp 0x41b0be
mov eax, dword [0xb22c70]
cmp eax, esi
je 0x41b0be
push eax
call fcn.00416b3e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41b0be
mov eax, dword [0xb22c74]
cmp eax, esi
je 0x41b0be
push dword [ebp - 4]
push eax
call fcn.00416b3e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0xb22c6c]
call fcn.00416b3e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
aam 0x45
or byte [ebx + 0x79c0c80d], cl
add byte [eax - 0x7d], dl
rol dword [ecx], 0x68
je 0x401782
inc eax
add byte [ecx - 1], dl
imul eax, dword [eax - 0x5e41cc3f], 0xffffffac
add al, byte [ecx + 0x3a]
or al, ah
or al, 0x85
ja 0x4017eb
xor byte [eax + 0x68], dl
rol byte [eax + 0x50], cl
call dword [0xefc189]
add esp, 8
push 1
out dx, eax
add byte [ebx + 0x16a08c4], al
call dword [sym.imp.MSVCRT.dll_exit]
nop
jne 0x40184a
mov edx, dword [0x40d018]
mov esi, dword [0xe0c158]
push 0x5b60
push edx
call esi
mov dword [0x410bb0], eax
mov eax, dword [0x40d010]
push 0x20
push eax
call esi
mov ecx, dword [0x91404c]
mov edx, dword [0xd402d18]
fist word es:[eax]
xlatb
enter 0x410b, 0
push 0
stc
push edx
push 0x4117f8
call fcn.00406065
cmp eax, 0x840e74aa
push 0x407c50
call fcn.00401e40
add esp, 8
mov eax, dword [0x9c027c]
test eax, eax
jne 0x4018df
mov eax, dword [0x419946]
mov ecx, dword [0xcaf40b9c]
invalid
mov eax, dword [0x413648]
xchg esi, eax
xchg dword [ebp + 0x4d004102], eax
leave
jne 0x401914
mov ecx, dword [0x41004c]
push 0x1e
push 0xfbd19c
push 0x61d444
push str.User_Agent:_ApacheBench_
push eax
scasd eax, dword es:[edi]
call 0x855890
add esp, 0x18
mov dword [0x8744048], eax
mov ecx, dword [0x41a134]
test ecx, ecx
loopne 0x401954
mov edx, dword [0x99404c]
push 0x2c
push str.Accept:___r_n
push eax
push edx
pop si
aas
add byte [eax], al
push ebx
les edx, [eax]
mov dword [0xf2bf48], eax
lds ecx, [0x410260]
test ecx, ecx
jg 0x4019a7
mov edx, dword [0x410268]
mov esi, 0x40271d
test edx, edx
jne 0x401958
mov esi, 0x4181d4
aam 0x81
inc ecx
add byte [ebx + 0x412c7815], cl
inc ebx
mov edx, dword [0x43412c78]
test dword [ebx + ecx*4], 0x81c1d476
add byte [ebp + 6], dh
push 0x15
in al, 0x17
inc ecx
add byte [ebp - 0x2c074637], al
inc eax
add byte [ebp + eax - 0x47], dh
invalid
mov dl, byte [0xee3840]
mov edi, 0x413840
test ah, bl
jne 0x4019bb
cmp ecx, eax
dec eax
inc eax
add byte [ebx + 0x41ce6808], cl
add byte [ebx - 4], dl
mov ecx, dword [eax]
push 0x530041ce
cld
rol dword [eax + 0x7f], cl
test edx, edx
push edi
add eax, 0x67d553be
add byte [ebx + 0x4102a118], al
push cs
test edx, edx
stosd dword es:[edi], eax
adc eax, 0x41f240
xor al, 6
ficom word [0x411730]
cmp dword [esi], 1
mov ecx, 0xdf40d3c0
add dword [ecx - 0x20bf2c40], edi
fldcw word [0x4059bcb9]
add byte [eax - 0x5f], dl
outsd dx, dword [esi]
rol dword [ecx], 1
push edi
push eax
mov eax, dword [0x411804]
push eax
mov eax, dword [0x414044]
wait
push esi
push edx
mov bh, 0xf3
or eax, 0x40d030
xchg ecx, eax
js 0x4019e7
inc eax
add byte [eax + 0xc], ch
or byte [eax], al
add byte [ecx - 9], dl
sbb edx, esp
jge 0x401a21
add esp, 0x2c
cmp eax, 0x5dab0800
jb 0x401a38
push 0x3940d364
call 0x3f2a50
add esp, 4
mov eax, dword [0x88410258]
loop 0x401a41
add byte [eax], al
add byte [ebx], bh
ret
Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
add ebp, esp
mov ebp, dword [eax + 0x14408b06]
faddp st(0)
je 0x40a410
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [0x4c40c098]
invalid
xor ecx, dword [eax + 0x8c25d]
bswap eax
nop
jecxz 0x40a415
pop ebp
ret 0xc108
Function at 0x40107e
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x415110]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
push ebx
mov ebx, dword [ebp + 0x1e0]
push esi
mov esi, dword [ebp + 0x1e4]
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00403840
mov dword [ebp - 0x80], edi
xor eax, eax
mov word [ebp - 0x50], ax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x200
xor edi, edi
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [ebp - 0x54], 1
call fcn.00403840
add esp, 0x18
cmp esi, 0x4111af
je 0x401127
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010ef
sub eax, edx
mov al, byte [esi + eax - 1]
cmp al, 0x2f
je 0x40110d
cmp al, 0x5c
je 0x40110d
push ebx
push esi
push 0x41129c
jmp 0x401114
push ebx
push esi
push str._s_s
lea eax, [ebp - 0x2c]
push 0x1ff
push eax
call fcn.0040377a
add esp, 0x14
jmp 0x40113e
push ebx
push 0x4112ac
lea eax, [ebp - 0x2c]
push 0x1ff
push eax
call fcn.0040377a
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push edi
push 0x20
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp + 0x1d4]
neg eax
pop edi
sbb eax, eax
and eax, dword [ebp - 0x3c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403829
add ebp, 0x1d8
leave
ret

Function at 0x401177
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x415110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push 0
push edi
call fcn.00403840
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00403840
add esp, 0x18
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4011c9
xor al, al
jmp 0x401227
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
lea ebx, [esi - 1]
push ebx
push edi
call fcn.0040397e
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4011e4
sub eax, ecx
mov ecx, esi
sub ecx, eax
dec ecx
dec ecx
push ecx
push 0x4114bc
push ebx
push edi
call fcn.004038ba
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401208
sub eax, ecx
sub esi, eax
dec esi
dec esi
push esi
push str.mylk.dat
push ebx
push edi
call fcn.004038ba
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403829
leave
ret
Function at 0x401236
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
je 0x401341
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x401341
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
push 3
cdq
pop ebx
idiv ebx
sub edi, edx
test edi, edi
jle 0x4012c2
xor edx, edx
lea eax, [edi - 1]
div ebx
inc eax
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
dec eax
jne 0x40126b
mov eax, dword [ebp + 0x10]
sub eax, edi
pop edi
pop ebx
cmp eax, 1
jne 0x4012f4
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
jmp 0x401332
cmp eax, 2
jne 0x401337
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
and eax, 3
shl eax, 4
shr edx, 4
mov al, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, ecx
sub eax, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x401344
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401632
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0x10
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], eax
lea eax, [esi + 4]
mov dword [ebp + 0xc], eax
jb 0x401653
mov eax, dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp + 0x14]
push ecx
push 2
push 0
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x4016be
cmp dword [edi + 0x18], 0x10
jb 0x401676
mov edi, dword [edi + 4]
jmp 0x401679
add edi, 4
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x401687
mov eax, dword [eax + 4]
jmp 0x40168a
add eax, 4
push dword [ebp - 4]
push edi
push 1
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4016b6
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x4016b6
mov al, 1
jmp 0x401744
push dword [ebp + 0x14]
jmp 0x401740
cmp eax, 2
jne 0x401742
push esi
push dword [ebp + 8]
call fcn.004015eb
pop ecx
pop ecx
test al, al
je 0x401742
cmp dword [esi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
jb 0x4016e3
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
push 2
push 0
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401742
cmp dword [edi + 0x18], 0x10
jb 0x401700
mov edi, dword [edi + 4]
jmp 0x401703
add edi, 4
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x401711
mov eax, dword [eax + 4]
jmp 0x401714
add eax, 4
push dword [ebp - 4]
push edi
push 1
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40173d
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x4016af
push dword [ebp + 0xc]
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ef2
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x415110]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x4104aa
call fcn.00403ee5
mov ebx, dword [ebp + 0x12c]
xor edi, edi
push 0x104
lea eax, [ebp + 0x1c]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00403840
add esp, 0xc
xor esi, esi
inc esi
push esi
push 0x23
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x401f9a
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401cdf
push str.kuwo
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.00401c4e
lea eax, [ebp]
push eax
call fcn.00401e74
pop ecx
test eax, eax
je 0x401f8c
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00401bfe
push edi
push esi
lea ecx, [ebp]
call fcn.004017b3
jmp 0x402018
or dword [ebp - 4], 0xffffffff
push edi
push esi
lea ecx, [ebp]
call fcn.004017b3
push 0x411308
lea ecx, [ebp]
call fcn.00401cdf
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call fcn.00401e74
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
call fcn.004017b3
cmp dword [ebp - 0x10], edi
je 0x401fd1
push 0x41131c
jmp 0x402011
push 0x411330
lea ecx, [ebp - 0x2c]
call fcn.00401cdf
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 2
call fcn.00401e74
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.004017b3
cmp dword [ebp - 0x10], edi
je 0x40200c
push str.C:ProgramDatakuwo
jmp 0x402011
push 0x4111c1
mov ecx, ebx
call fcn.00401cdf
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.00403829
add ebp, 0x124
leave
ret