joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482100
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov cl, byte [ebx]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test cl, cl
je 0x482234
lea esp, [esp]
mov al, byte [esi]
test al, al
je 0x482234
test edi, edi
je 0x482238
movsx edx, cl
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x48213d
jmp dword [edx*4 + 0x482268]
mov cl, 0x41
jmp case.default.0x48213d
mov cl, 0x42
jmp case.default.0x48213d
mov cl, 0x43
jmp case.default.0x48213d
mov cl, 0x44
jmp case.default.0x48213d
mov cl, 0x45
jmp case.default.0x48213d
mov cl, 0x46
jmp case.default.0x48213d
mov cl, 0x47
jmp case.default.0x48213d
mov cl, 0x48
jmp case.default.0x48213d
mov cl, 0x49
jmp case.default.0x48213d
mov cl, 0x4a
jmp case.default.0x48213d
mov cl, 0x4b
jmp case.default.0x48213d
mov cl, 0x4c
jmp case.default.0x48213d
mov cl, 0x4d
jmp case.default.0x48213d
mov cl, 0x4e
jmp case.default.0x48213d
mov cl, 0x4f
jmp case.default.0x48213d
mov cl, 0x50
jmp case.default.0x48213d
mov cl, 0x51
jmp case.default.0x48213d
mov cl, 0x52
jmp case.default.0x48213d
mov cl, 0x53
jmp case.default.0x48213d
mov cl, 0x54
jmp case.default.0x48213d
mov cl, 0x55
jmp case.default.0x48213d
mov cl, 0x56
jmp case.default.0x48213d
mov cl, 0x57
jmp case.default.0x48213d
mov cl, 0x58
jmp case.default.0x48213d
mov cl, 0x59
jmp case.default.0x48213d
mov cl, 0x5a
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x4821b5
jmp dword [edx*4 + 0x4822d0]
mov al, 0x41
jmp case.default.0x4821b5
mov al, 0x42
jmp case.default.0x4821b5
mov al, 0x43
jmp case.default.0x4821b5
mov al, 0x44
jmp case.default.0x4821b5
mov al, 0x45
jmp case.default.0x4821b5
mov al, 0x46
jmp case.default.0x4821b5
mov al, 0x47
jmp case.default.0x4821b5
mov al, 0x48
jmp case.default.0x4821b5
mov al, 0x49
jmp case.default.0x4821b5
mov al, 0x4a
jmp case.default.0x4821b5
mov al, 0x4b
jmp case.default.0x4821b5
mov al, 0x4c
jmp case.default.0x4821b5
mov al, 0x4d
jmp case.default.0x4821b5
mov al, 0x4e
jmp case.default.0x4821b5
mov al, 0x4f
jmp case.default.0x4821b5
mov al, 0x50
jmp case.default.0x4821b5
mov al, 0x51
jmp case.default.0x4821b5
mov al, 0x52
jmp case.default.0x4821b5
mov al, 0x53
jmp case.default.0x4821b5
mov al, 0x54
jmp case.default.0x4821b5
mov al, 0x55
jmp case.default.0x4821b5
mov al, 0x56
jmp case.default.0x4821b5
mov al, 0x57
jmp case.default.0x4821b5
mov al, 0x58
jmp case.default.0x4821b5
mov al, 0x59
jmp case.default.0x4821b5
mov al, 0x5a
cmp cl, al
jne 0x482234
mov cl, byte [ebx + 1]
inc ebx
dec edi
inc esi
test cl, cl
jne 0x482120
test edi, edi
jne 0x482241
pop edi
pop esi
mov eax, 1
pop ebx
ret
movzx eax, byte [ebx]
push eax
call fcn.00481e10
mov dl, al
movzx eax, byte [esi]
push eax
call fcn.00481e10
add esp, 8
xor ecx, ecx
cmp dl, al
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
ret
Function at 0x482340
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 1
jb 0x4823ec
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
sub esi, edx
lea esp, [esp]
mov al, byte [edx]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x48236d
jmp dword [ecx*4 + 0x4823f0]
mov al, 0x41
jmp case.default.0x48236d
mov al, 0x42
jmp case.default.0x48236d
mov al, 0x43
jmp case.default.0x48236d
mov al, 0x44
jmp case.default.0x48236d
mov al, 0x45
jmp case.default.0x48236d
mov al, 0x46
jmp case.default.0x48236d
mov al, 0x47
jmp case.default.0x48236d
mov al, 0x48
jmp case.default.0x48236d
mov al, 0x49
jmp case.default.0x48236d
mov al, 0x4a
jmp case.default.0x48236d
mov al, 0x4b
jmp case.default.0x48236d
mov al, 0x4c
jmp case.default.0x48236d
mov al, 0x4d
jmp case.default.0x48236d
mov al, 0x4e
jmp case.default.0x48236d
mov al, 0x4f
jmp case.default.0x48236d
mov al, 0x50
jmp case.default.0x48236d
mov al, 0x51
jmp case.default.0x48236d
mov al, 0x52
jmp case.default.0x48236d
mov al, 0x53
jmp case.default.0x48236d
mov al, 0x54
jmp case.default.0x48236d
mov al, 0x55
jmp case.default.0x48236d
mov al, 0x56
jmp case.default.0x48236d
mov al, 0x57
jmp case.default.0x48236d
mov al, 0x58
jmp case.default.0x48236d
mov al, 0x59
jmp case.default.0x48236d
mov al, 0x5a
mov byte [esi + edx], al
mov al, byte [edx]
inc edx
test al, al
je 0x4823eb
dec edi
jne 0x482360
pop esi
pop edi
ret
Function at 0x48cf20
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x57cda8
push ecx
call fcn.00474a10
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0048c0e0
test eax, eax
jne 0x48cf50
mov eax, esi
jmp fcn.0048c500
ret
Function at 0x48f060
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48f0a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00474aa0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.0048ef60
add esp, 4
pop esi
pop ecx
ret
Function at 0x48fd50
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x168]
mov dword [esp + 4], eax
jne 0x48feb7
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x48fd89
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fd96
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fda3
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fdd7
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fde7
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fdf3
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fdff
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fe0c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x48fe19
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, edi
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push 0x3e
mov dword [ebp], edi
call fcn.0048f2b0
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x154]
push edx
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x48fe76
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00474aa0
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.0048fb40
mov edx, dword [edi + 0x154]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call ebp
test eax, eax
jns 0x48feb4
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00474aa0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x490a80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x490ad4
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.00477a10
add esp, 8
cmp edi, 0xffffffff
jne 0x490b08
push str.Error_accept__ing_server_connect
push ebp
call fcn.00474aa0
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004610a0
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.00474a10
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.004984a0
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1f0]
add esp, 0x10
test eax, eax
je 0x490b76
mov ecx, dword [ebp + 0x1f4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x490b76
push edi
push esi
call fcn.00477a10
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004610a0
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004610a0
add esp, 0x18
ret
Function at 0x4945e0
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x494616
push str.Couldnt_set_desired_mode
push ebx
call fcn.00474aa0
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x49462d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00474a10
add esp, 0xc
cmp ebp, 0x13
jne 0x494641
push edi
call fcn.00494560
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x494655
push edi
call fcn.00491590
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x49466d
push 0xd
push 1
push edi
call fcn.00493910
add esp, 0xc
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x494681
push 0xe
push 1
push edi
call fcn.00493910
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x497020
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x497086
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x497086
lea edx, [esp]
push edx
call dword [0x5e1060]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004610a0
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004610a0
add esp, 0x108
ret

Function at 0x499390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00461520
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x4993d7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004610a0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call sub.MSVCR100.dll__stat64i32
add esp, 8
test eax, eax
js 0x4993c0
mov eax, 8
call fcn.00461520
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00499200
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4993c0
push 0x57beb4
push esi
call sub.MSVCR100.dll_fopen
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4994b1
jmp 0x499434
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x499442
mov esi, ebx
cmp ebx, 0x400
jl 0x499447
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call sub.MSVCR100.dll_fread
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x499495
fild dword [esp + 0x44]
mov eax, 8
call fcn.00461520
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00499200
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x499430
sub ebx, esi
test ebx, ebx
jg 0x499430
mov ecx, dword [esp + 0x40]
push ecx
call sub.MSVCR100.dll_fclose
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004b8160
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
mov esp, ebp
pop ebp
ret
Function at 0x4994d0
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
xor esi, esi
call fcn.004d19c0
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x499526
push str.RANDFILE
call sub.MSVCR100.dll_getenv
mov esi, eax
add esp, 4
test esi, esi
je 0x499526
cmp byte [esi], 0
je 0x499526
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499500
sub eax, edx
inc eax
cmp eax, edi
jae 0x499526
push edi
push esi
mov esi, dword [esp + 0x14]
push esi
call fcn.004b8260
add esp, 0xc
cmp eax, edi
jb 0x499596
pop edi
xor eax, eax
pop esi
ret
call fcn.004d19c0
test eax, eax
jne 0x49953e
push str.HOME
call sub.MSVCR100.dll_getenv
add esp, 4
mov esi, eax
test esi, esi
jne 0x499549
mov esi, 0x583624
jmp 0x49954e
cmp byte [esi], 0
je 0x49958f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499553
sub eax, edx
add eax, 6
cmp eax, edi
jae 0x49958f
push edi
push esi
mov esi, dword [esp + 0x14]
push esi
call fcn.004b8260
push edi
push 0x5c0154
push esi
call fcn.004b82a0
push edi
push str..rnd
push esi
call fcn.004b82a0
add esp, 0x24
pop edi
mov eax, esi
pop esi
ret
mov esi, dword [esp + 0xc]
mov byte [esi], 0
pop edi
mov eax, esi
pop esi
ret

Function at 0x4a0350
Capabilities:
Query environment variable

Disassembly:
push str.OPENSSL_CONF
call sub.MSVCR100.dll_getenv
add esp, 4
test eax, eax
je 0x4a036b
push eax
call fcn.004b8370
add esp, 4
ret
call fcn.004d0470
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0373
push esi
push edi
sub eax, edx
push 0x21b
lea edi, [eax + 0xd]
push str..cryptoconfconf_mod.c
push edi
call fcn.004a25d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4a039d
pop edi
pop esi
ret
push edi
call fcn.004d0470
push eax
push esi
call fcn.004b8260
push edi
push 0x5c0154
push esi
call fcn.004b82a0
push edi
push str.openssl.cnf
push esi
call fcn.004b82a0
add esp, 0x24
pop edi
mov eax, esi
pop esi
ret
Function at 0x4b0e80
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret

Function at 0x4b0f20
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x4b1360
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x22c]
test esi, esi
jne 0x4b1379
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004745b0
push edx
push eax
call fcn.004745e0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x220], 0
je 0x4b13c6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.004745b0
push edx
push eax
call fcn.004745e0
mov ecx, dword [edi + 0x220]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x4b13c8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4b3750
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4b3783
push 0x2e
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x4b3781
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x4b85c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 8
call fcn.00461520
cmp dword [0x5ee9bc], 0
jne 0x4b86cd
push esi
push str.OPENSSL_ia32cap
mov dword [0x5ee9bc], 1
call sub.MSVCR100.dll_getenv
mov esi, eax
add esp, 4
test esi, esi
je 0x4b86d8
xor eax, eax
cmp byte [esi], 0x7e
push ebx
sete al
push edi
lea ecx, [esp + 0xc]
push ecx
push str._I64i
mov edi, eax
lea ebx, [edi + esi]
push ebx
call sub.MSVCR100.dll_sscanf
add esp, 0xc
test eax, eax
jne 0x4b8636
push eax
push eax
push ebx
call sub.MSVCR100.dll_strtoul
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x4b8659
push 0x600b30
call fcn.004b7e00
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
not ecx
not edi
add esp, 4
and eax, ecx
and edx, edi
jmp 0x4b866b
cmp byte [esi], 0x3a
jne 0x4b8673
push 0x600b30
call fcn.004b7e00
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
push 0x3a
push esi
mov dword [0x600b38], 0
call fcn.0046163c
add esp, 8
pop edi
pop ebx
test eax, eax
je 0x4b86b4
inc eax
xor edx, edx
cmp byte [eax], 0x7e
push 0
sete dl
push 0
mov esi, edx
add eax, esi
push eax
call sub.MSVCR100.dll_strtoul
add esp, 0xc
test esi, esi
je 0x4b86d1
not eax
and dword [0x600b38], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
or eax, 0x400
mov dword [0x600b30], eax
mov dword [0x600b34], ecx
pop esi
add esp, 8
ret
mov dword [0x600b38], eax
jmp 0x4b86b4
push 0x600b30
call fcn.004b7e00
add esp, 4
mov dword [esp + 8], edx
jmp 0x4b86b8
Function at 0x4b8830
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.00461520
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4b88b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4b88b7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call sub.MSVCR100.dll__vsnprintf
add esp, 0x10
test eax, eax
jns 0x4b888d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004610a0
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call sub.MSVCR100.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4b8945
call fcn.004b86f0
test eax, eax
jle 0x4b8945
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004610a0
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004610a0
add esp, 0x108
ret

Function at 0x4b89a0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x4b89c2
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x4b89b6
pop esi
movzx eax, cl
pop edi
ret
Function at 0x4f3ff0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x5e1054]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f4015
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x4f405c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4f4060
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x4f40bc
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x4f4083
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x4f40f8
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x5a6324
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x5a6325
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x4f40c7
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4f9c50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.00461520
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x9c]
test ebx, ebx
je 0x4f9cc5
cmp ebx, dword [esi]
je 0x4f9cbc
test edi, edi
je 0x4f9ca2
cmp dword [esp + 0xa0], eax
jge 0x4f9cbc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004610a0
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x4f9ccb
mov ebx, dword [esi]
test ebx, ebx
je 0x4f9ca2
push ebp
test edi, edi
je 0x4f9d9d
push ebx
call fcn.004c9070
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x4f9cfb
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004b8970
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x4f9d55
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.004c6300
add esp, 0xc
test eax, eax
je 0x4f9e4a
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004c64b0
add esp, 0xc
test eax, eax
je 0x4f9e4a
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.004c64c0
add esp, 0xc
test eax, eax
je 0x4f9e4a
jmp 0x4f9d7a
cmp eax, 0x80
ja 0x4f9e4a
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4f9da5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x4f9da5
test eax, eax
je 0x4f9e36
xor eax, eax
jmp 0x4f9db0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x4f9db0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.004c6300
add esp, 0xc
test eax, eax
je 0x4f9e4a
push ebx
call fcn.004c9070
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004c64b0
add esp, 0x10
test eax, eax
je 0x4f9e4a
xor eax, eax
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x80
jl 0x4f9df4
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.004c6300
add esp, 0xc
test eax, eax
je 0x4f9e4a
push ebx
call fcn.004c9070
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004c64b0
add esp, 0x10
test eax, eax
je 0x4f9e4a
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.004c6650
add esp, 8
test eax, eax
jne 0x4f9e4e
xor eax, eax
jmp 0x4f9e53
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0x88
ret