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

Disassembly:
add esp, 0xffffff80
push 0x40
lea edx, [esp + 4]
push edx
add eax, dword [0x419194]
push eax
mov eax, dword [0x4174d8]
push eax
call sub.user32.dll_LoadStringA_1
push 0x40
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x4191a4]
push eax
call sub.user32.dll_GetWindowTextA
push 0x10
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [0x4191a4]
push eax
call sub.user32.dll_MessageBoxA_1
add esp, 0x80
ret

Function at 0x4119f0
Capabilities:
Create http request
Get file attributes
Read data from internet
Receive data
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x434], eax
xor eax, eax
push ebp
push 0x411be8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x411bf8
call sub.kernel32.dll_GetFileAttributesA
test al, 1
jne 0x411bcf
mov eax, 0x1c
call fcn.0040d920
mov eax, dword [0x4191a4]
push eax
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0
push 0x411c08
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
je 0x411bca
push 0
push 0x80000000
push 0
push 0
mov eax, dword [0x416314]
push eax
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
je 0x411bc4
mov dword [ebp - 0x1c], 0x10
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x4000000b
push esi
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x411bbe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x430]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
test eax, eax
je 0x411bbe
xor edx, edx
mov eax, 0x411c20
call fcn.00407184
mov edi, eax
test edi, edi
je 0x411bbe
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push edi
call sub.kernel32.dll_GetFileTime
test eax, eax
je 0x411bb7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CompareFileTime
test eax, eax
jge 0x411bb7
mov eax, edi
call fcn.0040724c
mov eax, 0x411c20
mov edx, 1
call fcn.00407184
mov edi, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x420]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x411b44
lea edx, [ebp - 0x420]
mov ecx, dword [ebp - 0x18]
mov eax, edi
call fcn.00407214
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, 0x64
cdq
idiv ecx
test edx, edx
jne 0x411b9f
lea eax, [ebp - 0x434]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0
lea edx, [ebp - 0x43c]
xor ecx, ecx
mov eax, 0x411c38
call fcn.00407994
mov edx, dword [ebp - 0x434]
mov eax, 0x419208
call fcn.004035d4
call fcn.0040d8cc
mov eax, dword [0x4191a4]
push eax
call sub.user32.dll_UpdateWindow
cmp dword [ebp - 0x18], 0
jne 0x411b1a
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push edi
call sub.kernel32.dll_SetFileTime
mov eax, edi
call fcn.0040724c
push esi
call sub.wininet.dll_InternetCloseHandle
push ebx
call sub.wininet.dll_InternetCloseHandle
call fcn.0040d8fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411bef
lea eax, [ebp - 0x434]
call fcn.00403580
ret
Function at 0x411cd0
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff4
mov dword [esp], edx
mov dword [esp + 8], 4
lea edx, [esp + 8]
push edx
lea edx, [esp + 4]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push eax
mov eax, dword [0x41970c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x411d04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffd8
mov edi, edx
mov byte [esp + 8], 0
mov dword [esp + 4], 0x20
lea edx, [esp + 4]
push edx
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 8]
push edx
push 0
push eax
mov eax, dword [0x41970c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp byte [esp + 8], 0
je 0x411d75
xor esi, esi
xor edi, edi
xor eax, eax
mov bl, byte [esp + esi + 8]
cmp bl, 0x20
ja 0x411d5d
shr edi, 8
mov edx, edi
xchg edx, eax
call fcn.0040613c
mov edi, eax
xor eax, eax
jmp 0x411d70
cmp bl, 0x30
jb 0x411d70
add eax, eax
lea eax, [eax + eax*4]
xor edx, edx
mov dl, bl
sub edx, 0x30
add eax, edx
inc esi
test bl, bl
jne 0x411d43
mov eax, edi
add esp, 0x28
pop edi
pop esi
pop ebx
ret

Function at 0x411d80
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
add esp, 0xffffffd4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406168
and eax, 0xff
mov dword [esp + 0x20], eax
mov eax, ebx
call fcn.0040616c
and eax, 0xff
mov dword [esp + 0x24], eax
mov eax, ebx
call fcn.00406170
and eax, 0xff
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0x411dec
lea eax, [esp + 8]
push eax
call sub.user32.dll_wvsprintfA
inc eax
push eax
lea eax, [esp + 4]
push eax
push 1
push 0
push esi
mov eax, dword [0x41970c]
push eax
call sub.advapi32.dll_RegSetValueExA
add esp, 0x2c
pop esi
pop ebx
ret
Function at 0x405d7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405db5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d8f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc8
pop edi
not eax
pop esi
ret 0xc

Function at 0x10002610
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov ebx, ebx
mov ebx, ebx
cmp dword [ebp + 8], 0
jne 0x10002634
xor al, al
jmp 0x100026ca
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10002649
xor al, al
jmp 0x100026ca
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0x4550
je 0x10002664
xor al, al
jmp 0x100026ca
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
cmp eax, 0x10b
je 0x1000268b
mov edx, edx
mov edx, edx
xor al, al
jmp 0x100026ca
mov esi, esi
mov esi, esi
mov esi, esi
mov ecx, dword [ebp - 0xc]
add ecx, 0xe0
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
je 0x100026ac
mov edx, dword [ebp + 0xc]
push dword [ebp - 4]
pop eax
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x100026ba
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp + 0x14], 0
je 0x100026c8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x401825
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0043dba0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40186a
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.pendA_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401895
push 6
call fcn.0043ba29
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x4018b1
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.0043ba1d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4018b6
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4018c7
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x403045
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.pendA_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403088
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.pendA_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4030b2
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.pendA_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4030e6
push 6
call fcn.0043ba29
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4030ee
mov esp, ebp
pop ebp
ret 4

Function at 0x4030f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x403113
mov dword [ebp + 0x14], 0
jmp 0x403130
cmp dword [ebp + 0x14], 2
jne 0x403129
mov dword [ebp + 0x14], 7
jmp 0x403130
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x44422d
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [0x4421a4]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40316b
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x403187
mov eax, 0
jmp 0x403191
mov eax, 1
jmp 0x403191
mov esp, ebp
pop ebp
ret 0x14
Function at 0x409a8a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0x14e
jle 0x409ab4
cmp dword [ebp + 8], 0x180
jge 0x409ab4
mov eax, 1
jmp 0x409ab6
xor eax, eax
test eax, eax
je 0x409b0a
cmp dword [ebp + 0xc], 0xc8
jle 0x409adf
cmp dword [ebp + 0xc], 0xd9
jge 0x409adf
mov eax, 1
jmp 0x409ae1
xor eax, eax
test eax, eax
je 0x409b0a
mov eax, 0x453102
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409c54
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409b0a
push ebx
call fcn.0043ba23
add esp, 4
cmp dword [ebp + 8], 0x151
jle 0x409b2b
cmp dword [ebp + 8], 0x180
jge 0x409b2b
mov eax, 1
jmp 0x409b2d
xor eax, eax
test eax, eax
je 0x409b81
cmp dword [ebp + 0xc], 0xe7
jle 0x409b56
cmp dword [ebp + 0xc], 0xf5
jge 0x409b56
mov eax, 1
jmp 0x409b58
xor eax, eax
test eax, eax
je 0x409b81
mov eax, str.https:__aq.qq.com_cn2_findpsw_pc_pc_find_pwd_input_account_pw_type0aquin
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409c54
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409b81
push ebx
call fcn.0043ba23
add esp, 4
cmp dword [ebp + 8], 0x193
jle 0x409ba2
cmp dword [ebp + 8], 0x1a6
jge 0x409ba2
mov eax, 1
jmp 0x409ba4
xor eax, eax
test eax, eax
je 0x409bdb
cmp dword [ebp + 0xc], 4
jle 0x409bc7
cmp dword [ebp + 0xc], 0x13
jge 0x409bc7
mov eax, 1
jmp 0x409bc9
xor eax, eax
test eax, eax
je 0x409bdb
push 0
call fcn.0043ba0b
add esp, 4
cmp dword [ebp + 8], 0x177
jle 0x409bfc
cmp dword [ebp + 8], 0x18a
jge 0x409bfc
mov eax, 1
jmp 0x409bfe
xor eax, eax
test eax, eax
je 0x409c44
cmp dword [ebp + 0xc], 6
jle 0x409c21
cmp dword [ebp + 0xc], 0x16
jge 0x409c21
mov eax, 1
jmp 0x409c23
xor eax, eax
test eax, eax
je 0x409c44
push 1
push 1
push 0x480c77
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1a0]
mov eax, 1
jmp 0x409c4e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409c54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x44422d
push 0x44422d
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [0x4421a4]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x409c9a
push 6
call fcn.0043ba29
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x40fb4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0043dba0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40fb8f
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.pendA_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40fbba
push 6
call fcn.0043ba29
add esp, 4
push 0x44427d
push dword [ebp - 4]
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40fbda
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40fbeb
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x40fbf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x40fc0b
call fcn.0040fc7b
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.pendA_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40fc37
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.pendA_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40fc61
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x40fc75
mov esp, ebp
pop ebp
ret 8
Function at 0x4257fe
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [0x442290]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x425839
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0043ef30
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42589c
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0043e550
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [0x442290]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4258c0
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0043ef30
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x425923
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0043e550
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [0x442290]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x425947
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0043ef30
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4259aa
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0043e550
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4259b2
mov esp, ebp
pop ebp
ret
Function at 0x429d27
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [0x4422d8]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x429d6d
push 6
call fcn.0043ba29
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x452c24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.0040342a
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0043dba0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x429dc0
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [0x4422d4]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x429df9
push 6
call fcn.0043ba29
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x429e15
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.0043ba1d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x429e1a
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x429e2b
push ebx
call fcn.0043ba23
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x43d870
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push Ordinal_2
push eax
call dword [sym.imp.pendA_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43d8d9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.pendA_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0043d370
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.pendA_ReadFile]
push edi
call dword [sym.imp.pendA_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x43e0b0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0043d370
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.pendA_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x43e107
push ebx
push edi
call fcn.0043d400
push esi
mov ebx, esi
call fcn.0043d370
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.pendA_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x43e0de
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.pendA_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.pendA_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.pendA_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.pendA_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x40103e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
jne 0x40105a
push esi
call fcn.004048a0
pop ecx
mov dword [ebp + 0xc], eax
mov edi, dword [ebp + 8]
and dword [ebp - 8], 0
and dword [ebp + 8], 0
lea ecx, [eax - 3]
test ecx, ecx
mov dword [ebp - 4], esi
jle 0x401110
lea eax, [ecx - 1]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
mov ecx, eax
shl ecx, 2
mov dword [ebp - 0xc], eax
imul eax, eax, 3
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, esi
shr eax, 8
and eax, 0xf
mov ecx, esi
shr ecx, 0x16
shl eax, 2
and ecx, 3
or eax, ecx
push eax
call section..text
movsx ebx, al
mov eax, esi
shr eax, 0x10
and eax, 0x3f
push eax
call section..text
movsx eax, al
shl eax, 8
or ebx, eax
mov eax, esi
shr eax, 0xc
mov ecx, esi
and ecx, 3
and eax, 0xf
shl ecx, 4
or eax, ecx
push eax
shl ebx, 8
call section..text
movsx eax, al
shr esi, 2
or ebx, eax
and esi, 0x3f
push esi
shl ebx, 8
call section..text
add dword [ebp - 4], 3
movsx eax, al
or ebx, eax
mov dword [edi], ebx
add esp, 0x10
add edi, 4
dec dword [ebp - 0xc]
jne 0x40108f
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
jge 0x4011af
sub eax, dword [ebp + 8]
xor esi, esi
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0xc], esi
jle 0x40113a
push ebx
push dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
call fcn.0040e250
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov eax, esi
shr eax, 2
and eax, 0x3f
push eax
call section..text
mov byte [edi], al
mov eax, esi
shr eax, 0xc
mov ecx, esi
and ecx, 3
and eax, 0xf
shl ecx, 4
or eax, ecx
push eax
call section..text
cmp ebx, 1
pop ecx
pop ecx
mov byte [edi + 1], al
jle 0x40118a
mov eax, esi
shr eax, 8
and eax, 0xf
mov ecx, esi
shr ecx, 0x16
shl eax, 2
and ecx, 3
or eax, ecx
push eax
call section..text
pop ecx
jmp 0x40118c
mov al, 0x3d
cmp ebx, 2
mov byte [edi + 2], al
jle 0x4011a3
shr esi, 0x10
and esi, 0x3f
push esi
call section..text
pop ecx
jmp 0x4011a5
mov al, 0x3d
mov byte [edi + 3], al
add edi, 4
add dword [ebp - 8], 4
mov eax, dword [ebp - 8]
mov byte [edi], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401202
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, edi
jne 0x401220
push esi
call fcn.004048a0
pop ecx
mov dword [ebp + 0xc], eax
lea ecx, [eax - 4]
cmp ecx, edi
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov dword [ebp + 8], edi
jle 0x4012e5
lea eax, [ecx - 1]
shr eax, 2
inc eax
mov ecx, eax
imul ecx, ecx, 3
mov dword [ebp - 8], eax
shl eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
shr ecx, 0x10
call fcn.004011ba
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
shr ecx, 8
call fcn.004011ba
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
shr ecx, 0x18
call fcn.004011ba
shl eax, 2
sar eax, 2
mov ecx, ebx
shl ecx, 6
or eax, ecx
and eax, 0xff
shl eax, 4
mov ecx, edi
and ecx, 0xf
or eax, ecx
mov ecx, dword [ebp - 4]
mov cl, byte [ecx]
and ebx, 0x3fc
shl eax, 4
shl ebx, 2
sar ebx, 4
or eax, ebx
shl eax, 6
mov dword [ebp - 0xc], eax
call fcn.004011ba
mov ecx, dword [ebp - 0xc]
add dword [ebp - 4], 4
and edi, 0xff0
and eax, 0x3f
or ecx, eax
shl edi, 2
shl ecx, 2
sar edi, 6
or ecx, edi
mov dword [esi], ecx
add esi, 3
dec dword [ebp - 8]
jne 0x40124c
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
jge 0x40138d
sub eax, dword [ebp + 8]
and dword [ebp + 0xc], 0
test eax, eax
jle 0x401309
push eax
push dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
call fcn.0040e250
add esp, 0xc
mov ecx, dword [ebp + 0xc]
shr ecx, 8
mov dword [ebp + 8], ecx
call fcn.004011ba
mov cl, byte [ebp + 0xc]
mov ebx, eax
call fcn.004011ba
mov ecx, ebx
shl ecx, 2
shl al, 2
sar ecx, 6
or al, cl
mov byte [esi], al
inc esi
inc edi
cmp byte [ebp + 8], 0x3d
je 0x401357
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
cmp cl, 0x3d
je 0x401357
call fcn.004011ba
shl eax, 2
sar eax, 4
shl bl, 4
or al, bl
mov byte [esi], al
inc esi
inc edi
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
shr ebx, 0x10
cmp bl, 0x3d
je 0x40138d
shr ecx, 0x18
cmp ecx, 0x3d
je 0x40138d
call fcn.004011ba
shl eax, 2
sar eax, 2
mov cl, bl
mov dword [ebp + 0xc], eax
call fcn.004011ba
mov ecx, dword [ebp + 0xc]
shl al, 6
or cl, al
mov byte [esi], cl
inc esi
inc edi
mov eax, edi
pop edi
mov byte [esi], 0
pop esi
pop ebx
leave
ret