joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3010
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x6c]
test eax, eax
jbe 0x4e31fb
mov ebp, dword [edi + 0xc]
mov al, byte [edx + ebp]
xor ebx, ebx
mov ecx, eax
and ecx, 0xff
mov bl, byte [ecx + 0x65d858]
mov ecx, ebx
test ecx, ecx
jne 0x4e3087
cmp al, 0x41
jb 0x4e3050
cmp al, 0x5a
jbe 0x4e308d
cmp al, 0x61
jb 0x4e3058
cmp al, 0x7a
jbe 0x4e308d
cmp al, 0x30
jb 0x4e3060
cmp al, 0x39
jbe 0x4e308d
cmp al, 0x3d
je 0x4e308d
cmp al, 0x3f
je 0x4e308d
cmp al, 0x26
je 0x4e308d
cmp al, 0x2f
je 0x4e308d
cmp al, 0x2d
je 0x4e308d
cmp al, 0x5f
je 0x4e308d
cmp al, 0x25
je 0x4e308d
cmp al, 0x2e
je 0x4e308d
cmp al, 0x7e
je 0x4e308d
inc esi
jmp 0x4e308d
lea esi, [esi + ecx + 1]
add edx, ecx
mov eax, dword [edi + 0x6c]
inc edx
cmp edx, eax
jb 0x4e302f
test esi, esi
je 0x4e31fb
lea ebp, [esi + esi + 4]
mov dword [esp + 0x28], ebp
lea edx, [eax + ebp]
push edx
call fcn.004e2970
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x24], esi
jne 0x4e30c5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
mov ecx, dword [edi + 0x6c]
xor ebx, ebx
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jbe 0x4e31df
mov ecx, dword [edi + 0xc]
mov al, byte [eax + ecx]
xor ecx, ecx
mov edx, eax
and edx, 0xff
mov cl, byte [edx + 0x65d858]
test ecx, ecx
mov dword [esp + 0x20], ecx
jne 0x4e316f
cmp al, 0x41
mov byte [esp + 0x18], al
jb 0x4e3102
cmp al, 0x5a
jbe 0x4e3160
cmp al, 0x61
jb 0x4e310a
cmp al, 0x7a
jbe 0x4e3160
cmp al, 0x30
jb 0x4e3112
cmp al, 0x39
jbe 0x4e3160
cmp al, 0x3d
je 0x4e3160
cmp al, 0x3f
je 0x4e3160
cmp al, 0x26
je 0x4e3160
cmp al, 0x2f
je 0x4e3160
cmp al, 0x2d
je 0x4e3160
cmp al, 0x5f
je 0x4e3160
cmp al, 0x25
je 0x4e3160
cmp al, 0x2e
je 0x4e3160
cmp al, 0x7e
je 0x4e3160
mov ecx, dword [esp + 0x18]
mov byte [ebx + esi], 0x25
inc ebx
and ecx, 0xff
lea eax, [ebx + esi]
push eax
push ecx
call fcn.004f1100
mov eax, dword [esp + 0x18]
add esp, 8
add ebx, 2
inc eax
mov dword [esp + 0x10], eax
jmp 0x4e31d0
mov byte [ebx + esi], al
mov eax, dword [esp + 0x10]
inc ebx
inc eax
mov dword [esp + 0x10], eax
jmp 0x4e31d0
lea ebp, [ecx + 1]
xor edi, edi
test ebp, ebp
jbe 0x4e31bc
add esi, ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc ebx
inc esi
lea eax, [edi + edx]
mov edx, dword [ecx + 0xc]
push esi
mov al, byte [eax + edx]
mov byte [esi - 1], 0x25
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
and ecx, 0xff
push ecx
call fcn.004f1100
add esp, 8
add ebx, 2
add esi, 2
inc edi
cmp edi, ebp
jb 0x4e317a
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
lea eax, [edx + ecx + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x6c]
cmp eax, ecx
jb 0x4e30d8
mov byte [ebx + esi], 0
mov ecx, edi
mov dword [edi + 0x6c], ebx
call fcn.004e2980
mov eax, dword [edi + 0x6c]
mov dword [edi + 0x64], esi
add ebp, eax
mov dword [edi + 0xc], esi
mov dword [edi + 0x68], ebp
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
Function at 0x4ea0a0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x74]
cmp esi, eax
je 0x4ea328
mov ebp, dword [esp + 0x78]
cmp ebp, eax
je 0x4ea328
cmp ebp, 2
mov word [esp + 8], 0x24
mov word [esp + 0xa], 0x25
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
mov word [esp + 0x10], 0x26
mov word [esp + 0x12], 0x27
mov word [esp + 0x14], 0x28
mov word [esp + 0x16], 0x29
mov word [esp + 0x18], ax
mov word [esp + 0x1a], 1
mov word [esp + 0x1c], 2
mov word [esp + 0x1e], 3
mov word [esp + 0x20], 4
mov word [esp + 0x22], 5
mov word [esp + 0x24], 6
mov word [esp + 0x26], 7
mov word [esp + 0x28], 8
mov word [esp + 0x2a], 9
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
mov word [esp + 0x32], 0x2a
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
mov word [esp + 0x38], ax
mov word [esp + 0x3a], 0xa
mov word [esp + 0x3c], 0xb
mov word [esp + 0x3e], 0xc
mov word [esp + 0x40], 0xd
mov word [esp + 0x42], 0xe
mov word [esp + 0x44], 0xf
mov word [esp + 0x46], 0x10
mov word [esp + 0x48], 0x11
mov word [esp + 0x4a], 0x12
mov word [esp + 0x4c], 0x13
mov word [esp + 0x4e], 0x14
mov word [esp + 0x50], 0x15
mov word [esp + 0x52], 0x16
mov word [esp + 0x54], 0x17
mov word [esp + 0x56], 0x18
mov word [esp + 0x58], 0x19
mov word [esp + 0x5a], 0x1a
mov word [esp + 0x5c], 0x1b
mov word [esp + 0x5e], 0x1c
mov word [esp + 0x60], 0x1d
mov word [esp + 0x62], 0x1e
mov word [esp + 0x64], 0x1f
mov word [esp + 0x66], 0x20
mov word [esp + 0x68], 0x21
mov word [esp + 0x6a], 0x22
mov word [esp + 0x6c], 0x23
jb 0x4ea328
push ebx
push edi
mov edi, dword [esp + 0x84]
movzx ax, byte [esi]
cmp ebp, 3
jb 0x4ea2c4
cmp ax, 0x28
jb 0x4ea23d
cmp ax, 0x5a
jbe 0x4ea242
mov eax, 0x28
add eax, 0xffffffd8
and eax, 0xffff
inc esi
mov cx, word [esp + eax*2 + 0x10]
movzx ax, byte [esi]
cmp ax, 0x28
jb 0x4ea260
cmp ax, 0x5a
jbe 0x4ea265
mov eax, 0x28
add eax, 0xffffffd8
and eax, 0xffff
inc esi
mov dx, word [esp + eax*2 + 0x10]
movzx ax, byte [esi]
cmp ax, 0x28
jb 0x4ea283
cmp ax, 0x5a
jbe 0x4ea288
mov eax, 0x28
lea ebx, [eax - 0x28]
lea eax, [ecx*8]
sub eax, ecx
add edx, ecx
and ebx, 0xffff
inc esi
lea eax, [eax + eax*2]
lea ecx, [edx + eax*2]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
mov cx, word [esp + ebx*2 + 0x10]
add cx, ax
push ecx
mov ecx, edi
call fcn.004e1120
jmp 0x4ea315
cmp ax, 0x28
jb 0x4ea2d0
cmp ax, 0x5a
jbe 0x4ea2d5
mov eax, 0x28
movzx cx, byte [esi + 1]
add eax, 0xffffffd8
and eax, 0xffff
inc esi
cmp cx, 0x28
mov ax, word [esp + eax*2 + 0x10]
jb 0x4ea2f4
cmp cx, 0x5a
jbe 0x4ea2f9
mov ecx, 0x28
add ecx, 0xffffffd8
inc esi
and ecx, 0xffff
mov dl, byte [esp + ecx*2 + 0x10]
mov cl, 0x2b
imul cl
add dl, al
mov ecx, edi
push edx
call fcn.004e0da0
cmp ebp, 3
jbe 0x4ea326
sub ebp, 3
cmp ebp, 2
jae 0x4ea224
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x68
ret
Function at 0x4ea370
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x128]
xor esi, esi
cmp edi, esi
je 0x4ea5cf
mov ebp, dword [esp + 0x124]
cmp ebp, esi
je 0x4ea5cf
push edi
push edi
call fcn.004e94d0
mov ecx, dword [esp + 0x138]
add esp, 8
push eax
call fcn.004e4bd0
test al, al
jne 0x4ea3c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov eax, 0xaaaaaaab
mov ebx, dword [esp + 0x12c]
mul edi
xor ecx, ecx
mov dword [esp + 0x10], esi
shr edx, 1
mov dword [esp + 0x14], edx
je 0x4ea4c0
jmp 0x4ea3e9
mov ebp, dword [esp + 0x124]
mov al, byte [esi + ebp]
mov dl, byte [esi + ebp + 1]
and eax, 0xff
inc esi
and edx, 0xff
inc esi
mov edi, edx
mov dl, byte [esi + ebp]
and edx, 0xff
inc esi
mov ebp, edx
mov edx, eax
shr edx, 2
and edx, 0x3f
and eax, 3
shl eax, 4
mov dl, byte [edx + ebx]
mov byte [esp + ecx + 0x18], dl
mov edx, edi
shr edx, 4
and edx, 0xf
and edi, 0xf
or edx, eax
inc ecx
shl edi, 2
mov al, byte [edx + ebx]
mov edx, ebp
shr edx, 6
and edx, 3
mov byte [esp + ecx + 0x18], al
or edx, edi
inc ecx
and ebp, 0x3f
inc ecx
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x17], al
mov dl, byte [ebx + ebp]
mov byte [esp + ecx + 0x18], dl
inc ecx
cmp ecx, 0x100
jl 0x4ea476
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x134]
push eax
call fcn.004e52e0
test al, al
je 0x4ea4a5
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x4ea3e2
test ecx, ecx
je 0x4ea4b2
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x138]
call fcn.004e52e0
test al, al
jne 0x4ea4b2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
mov edi, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
mov eax, edi
xor edx, edx
mov edi, 3
mov cl, 1
div edi
dec edx
je 0x4ea55d
dec edx
jne 0x4ea5c2
xor edx, edx
xor eax, eax
mov dl, byte [esi + ebp]
mov al, byte [esi + ebp + 1]
mov edi, edx
mov ebp, dword [esp + 0x130]
mov ecx, edi
mov esi, eax
sar ecx, 2
and ecx, 0x3f
mov dl, byte [ecx + ebx]
mov ecx, ebp
push edx
call fcn.004e3f90
test al, al
je 0x4ea5c0
mov eax, esi
and edi, 3
sar eax, 4
and eax, 0xf
shl edi, 4
or eax, edi
mov cl, byte [eax + ebx]
push ecx
mov ecx, ebp
call fcn.004e3f90
test al, al
je 0x4ea5c0
and esi, 0xf
mov ecx, ebp
mov dl, byte [ebx + esi*4]
push edx
call fcn.004e3f90
test al, al
je 0x4ea5c0
push 0x3d
mov ecx, ebp
call fcn.004e3f90
test al, al
je 0x4ea5c0
pop edi
mov cl, 1
pop esi
pop ebp
mov al, cl
pop ebx
add esp, 0x110
ret
xor eax, eax
mov edi, dword [esp + 0x130]
mov al, byte [esi + ebp]
mov esi, eax
mov ecx, esi
sar ecx, 2
and ecx, 0x3f
mov dl, byte [ecx + ebx]
mov ecx, edi
push edx
call fcn.004e3f90
test al, al
je 0x4ea5c0
and esi, 3
mov ecx, edi
shl esi, 4
mov al, byte [esi + ebx]
push eax
call fcn.004e3f90
test al, al
je 0x4ea5c0
push 0x3d
mov ecx, edi
call fcn.004e3f90
test al, al
je 0x4ea5c0
push 0x3d
mov ecx, edi
call fcn.004e3f90
test al, al
je 0x4ea5c0
pop edi
mov cl, 1
pop esi
pop ebp
mov al, cl
pop ebx
add esp, 0x110
ret
xor cl, cl
pop edi
pop esi
pop ebp
mov al, cl
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x110
ret
Function at 0x4eb300
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push esi
test ecx, ecx
je 0x4eb48d
mov ebp, dword [esp + 0x18]
mov dword [ecx], 0
test ebp, ebp
je 0x4eb48d
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4eb48d
lea edx, [ebp + ebp*4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
lea eax, [edx + 4]
push eax
mov dword [ecx], eax
call fcn.004f1e80
mov esi, eax
add esp, 4
test esi, esi
je 0x4eb48d
mov eax, 0xaaaaaaab
push edi
mul ebp
xor edi, edi
xor ecx, ecx
shr edx, 1
je 0x4eb3ed
mov dword [esp + 0x10], edx
jmp 0x4eb371
mov ebx, dword [esp + 0x18]
xor eax, eax
xor edx, edx
mov al, byte [edi + ebx]
mov dl, byte [edi + ebx + 1]
inc edi
mov ebp, edx
inc edi
xor edx, edx
mov dl, byte [edi + ebx]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
and eax, 3
shl eax, 4
mov bl, byte [ebx + 0x65da4c]
inc edi
mov byte [ecx + esi], bl
mov ebx, ebp
sar ebx, 4
and ebx, 0xf
inc ecx
or ebx, eax
and ebp, 0xf
shl ebp, 2
mov al, byte [ebx + 0x65da4c]
mov byte [ecx + esi], al
mov eax, edx
sar eax, 6
and eax, 3
inc ecx
or eax, ebp
and edx, 0x3f
inc ecx
mov al, byte [eax + 0x65da4c]
mov byte [ecx + esi - 1], al
mov dl, byte [edx + 0x65da4c]
mov eax, dword [esp + 0x10]
mov byte [ecx + esi], dl
inc ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x4eb36d
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, ebp
xor edx, edx
mov ebp, 3
div ebp
dec edx
je 0x4eb447
dec edx
jne 0x4eb479
xor eax, eax
mov al, byte [edi + ebx]
mov ebp, eax
xor eax, eax
mov al, byte [edi + ebx + 1]
mov edx, ebp
sar edx, 2
and edx, 0x3f
and ebp, 3
shl ebp, 4
mov dl, byte [edx + 0x65da4c]
mov byte [ecx + esi], dl
mov edx, eax
sar edx, 4
and edx, 0xf
inc ecx
or edx, ebp
inc ecx
and eax, 0xf
mov dl, byte [edx + 0x65da4c]
mov byte [ecx + esi - 1], dl
mov al, byte [eax*4 + 0x65da4c]
mov byte [ecx + esi], al
jmp 0x4eb473
xor eax, eax
mov al, byte [edi + ebx]
mov edx, eax
and eax, 3
sar edx, 2
and edx, 0x3f
inc ecx
shl eax, 4
mov dl, byte [edx + 0x65da4c]
mov byte [ecx + esi - 1], dl
mov al, byte [eax + 0x65da4c]
mov byte [ecx + esi], al
inc ecx
mov byte [ecx + esi], 0x3d
inc ecx
mov byte [ecx + esi], 0x3d
inc ecx
mov edx, dword [esp + 0x20]
mov byte [ecx + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
pop ecx
ret 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x4ee450
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x646bab
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
mov esi, dword [esp + 0x130]
mov ecx, esi
call fcn.004e3cd0
mov al, byte [0x724ab9]
test al, al
jne 0x4ee4da
push edi
mov ecx, 0x80
xor eax, eax
mov edi, 0x724700
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x100
push eax
push 0x724700
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
pop edi
jne 0x4ee4d3
mov ecx, dword [str.Win32]
mov edx, dword [0x6b8aa0]
mov ax, word [0x6b8aa4]
mov dword [0x724700], ecx
mov dword [0x724704], edx
mov word [0x724708], ax
mov byte [0x724ab9], 1
lea ecx, [esp + 8]
call fcn.004d91b0
push 0x724700
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0
call fcn.004db410
lea ecx, [esp + 8]
call fcn.004dbab0
push eax
mov ecx, esi
call fcn.004e5040
lea ecx, [esp + 8]
mov dword [esp + 0x128], 0xffffffff
call fcn.004d9240
mov ecx, dword [esp + 0x120]
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret

Function at 0x4f0d00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
jne 0x4f0d15
xor al, al
ret
mov ecx, dword [esp + 8]
push eax
call fcn.004e5040
ret
Function at 0x509550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x647e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call fcn.004dfe70
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x28], bl
mov byte [esi + 0x29], bl
mov dword [esi + 0x2c], ebx
call fcn.00506f60
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
call fcn.0053a540
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 2
call fcn.0053a540
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 3
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
call fcn.00570190
lea ecx, [esi + 0x218]
mov byte [esp + 0x14], 4
call fcn.004e57f0
lea ecx, [esi + 0x290]
mov byte [esp + 0x14], 5
call fcn.004e57f0
lea ecx, [esi + 0x308]
mov byte [esp + 0x14], 6
mov byte [esi + 0x304], bl
mov byte [esi + 0x305], bl
mov byte [esi + 0x306], bl
mov byte [esi + 0x307], bl
call fcn.004e57f0
lea ecx, [esi + 0x37c]
mov byte [esp + 0x14], 7
call fcn.004e57f0
lea ecx, [esi + 0x3f0]
mov byte [esp + 0x14], 8
call fcn.004e2220
lea ecx, [esi + 0x41c]
mov byte [esp + 0x14], 9
call fcn.004d91b0
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x534], bl
mov byte [esi + 0x535], bl
mov byte [esi + 0x536], bl
mov dword [esi + 0x538], 0x6e
mov byte [esi + 0x53c], bl
mov byte [esi + 0x53d], bl
mov dword [esi + 0x540], 0x7530
mov dword [esi + 0x544], ebx
mov dword [esi + 0x548], ebx
mov dword [esi], vtable.Pop3.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5096b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x647f2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], vtable.Pop3.0
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], 0xa
test eax, eax
je 0x5096f3
push eax
call fcn.004f5880
add esp, 4
mov dword [esi + 0x2c], 0
lea edi, [esi + 0x30]
mov ecx, edi
call fcn.00507950
mov ecx, esi
call fcn.0050ce70
lea ecx, [esi + 0x41c]
mov byte [esp + 0x14], 9
call fcn.004d9240
lea ecx, [esi + 0x3f0]
mov byte [esp + 0x14], 8
call fcn.004e2290
lea ecx, [esi + 0x37c]
mov byte [esp + 0x14], 7
call fcn.004e58d0
lea ecx, [esi + 0x308]
mov byte [esp + 0x14], 6
call fcn.004e58d0
lea ecx, [esi + 0x290]
mov byte [esp + 0x14], 5
call fcn.004e58d0
lea ecx, [esi + 0x218]
mov byte [esp + 0x14], 4
call fcn.004e58d0
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 3
call fcn.00570240
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 2
call fcn.0053a620
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
call fcn.0053a620
mov ecx, edi
mov byte [esp + 0x14], 0
call fcn.00506fa0
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e0890
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5104e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x51054b
cmp byte [eax], 0
je 0x51054b
push 0
push 0x6b9584
push eax
push 0x2e
call fcn.0056fe10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51054b
push ebx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push str.__BEGIN_SENT_CHILKAT_EMAIL___n
push esi
call edi
mov ebx, dword [esp + 0x1c]
add esp, 8
mov ecx, ebx
push esi
push 1
call fcn.005a8750
push eax
mov ecx, ebx
call fcn.004dda10
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push str._n__END_SENT_CHILKAT_EMAIL___n
push esi
call edi
push 0
push esi
call fcn.0056ff40
add esp, 0x20
pop edi
pop ebx
pop esi
ret 8
Function at 0x514a70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x648f53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.00532c00
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], ebx
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov byte [esi + 0x17], bl
mov byte [esi + 0x18], bl
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
call fcn.004e57f0
lea ecx, [esi + 0xb0]
mov byte [esp + 0x14], 1
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov dword [esi + 0xa8], ebx
mov byte [esi + 0xac], 1
mov byte [esi + 0xad], bl
call fcn.004e57f0
mov dword [esi + 0x124], ebx
mov dword [esi], vtable.SocketParams.0
mov ecx, dword [0x6ed1f4]
mov byte [esi + 8], 1
mov dword [esi + 0xa8], ecx
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x514b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x648f73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.SocketParams.0
xor ebx, ebx
lea ecx, [esi + 0xb0]
mov dword [esp + 0x14], 1
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov byte [esi + 0x17], bl
mov dword [esi + 0x24], ebx
mov byte [esi + 0x1a], bl
mov byte [esi + 0x19], bl
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x10], ebx
call fcn.004e58d0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], bl
call fcn.004e58d0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00532c40
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x515730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x648fe8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push str.text_
lea ecx, [edi + 0x498]
call fcn.004e5170
test al, al
je 0x515824
push str.attachment
lea ecx, [edi + 0x338]
call fcn.004e9220
test al, al
je 0x51578c
lea ecx, [edi + 0x864]
call fcn.004e2930
test eax, eax
jne 0x515824
lea esi, [edi + 0x18]
mov ecx, esi
call fcn.004dda10
mov ecx, esi
mov ebx, eax
call fcn.005a8750
cmp eax, 2
jbe 0x51580b
cmp byte [ebx], 0xff
jne 0x51580b
cmp byte [ebx + 1], 0xfe
jne 0x51580b
mov ecx, dword [esp + 0x38]
push str.Converting_text_email_body_from_utf16_to_utf_8...
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esp + 0xc]
call fcn.004dfe70
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
push ecx
mov ecx, esi
call fcn.004e2080
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.004e0c50
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004e0890
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ecx, edi
call fcn.00516370
cmp eax, 0xfde9
jne 0x515824
push 0x20
push 0
mov ecx, esi
call fcn.004dfea0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x515920
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x649028
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0xf592c107
jne 0x5159af
lea ecx, [esp + 0xc]
call fcn.00507040
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push esi
mov dword [esp + 0x38], 0
call fcn.005150f0
lea ecx, [esp + 0xc]
call fcn.00596fa0
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x51599e
push edi
lea ecx, [esp + 0x10]
call fcn.00507150
mov esi, eax
test esi, esi
je 0x515999
push str.text_html
lea ecx, [esi + 0x498]
call fcn.004e92d0
test al, al
jne 0x5159c3
inc edi
cmp edi, ebx
jl 0x515975
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00507070
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00507070
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x528d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64ac48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0xc]
call fcn.004eea40
mov edi, dword [esp + 0x38]
push str.getEmailAsXml
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.004f0370
lea ecx, [esp + 0x14]
call fcn.004f03e0
mov ecx, dword [esi + 0x2c8]
test ecx, ecx
je 0x528e0e
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ebx
push edi
push eax
push edx
call fcn.0051db10
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x2c], 0xffffffff
call fcn.004eea90
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov eax, dword [edi]
push str.No_internal_email_object.
mov ecx, edi
call dword [eax + 0x14]
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004eea90
mov ecx, dword [esp + 0x20]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x528d98
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64ac48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0xc]
call fcn.004eea40
mov edi, dword [esp + 0x38]
push str.getEmailAsXml
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.004f0370
lea ecx, [esp + 0x14]
call fcn.004f03e0
mov ecx, dword [esi + 0x2c8]
test ecx, ecx
je 0x528e0e
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ebx
push edi
push eax
push edx
call fcn.0051db10
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x2c], 0xffffffff
call fcn.004eea90
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov eax, dword [edi]
push str.No_internal_email_object.
mov ecx, edi
call dword [eax + 0x14]
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004eea90
mov ecx, dword [esp + 0x20]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x52e400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64b491
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0x100
call fcn.004dfe70
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x2c], ebx
call fcn.004dfe70
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
call fcn.004dfe70
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 2
call fcn.004dfe70
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], 0x80
mov byte [esi + 0x8c], bl
mov dword [esi], vtable._ckSymSettings.0
mov byte [esi + 0x28], 1
mov byte [esi + 0x48], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret