joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b4d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cd3f6
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.100b7420
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1030], 0
lea ecx, [ebp - 0x102c]
call fcn.10003a00
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x1014]
call fcn.10004940
lea ecx, [ebp - 0x1014]
call fcn.1000b190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1014]
call fcn.1000ba90
push 0x1000
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.1008c730
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x1010]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100b4db1
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x102c]
call fcn.100038b0
lea ecx, [ebp - 0x1014]
call fcn.1000bd90
lea eax, [ebp - 0x102c]
push eax
mov ecx, dword [ebp + 8]
call fcn.100040e0
mov ecx, dword [ebp - 0x1030]
or ecx, 1
mov dword [ebp - 0x1030], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1014]
call fcn.1000b210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
call fcn.10003910
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1000202e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10027cb8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x1000206b
push 0x10020888
push 4
push eax
call fcn.1000d466
push eax
call fcn.10001c84
add esp, 0x10
jmp 0x1000207d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100020e8
push edi
call fcn.1000d940
mov edi, dword [eax]
call fcn.1000d940
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.1000d8e6
add esp, 0x18
mov ebx, eax
call fcn.1000d940
cmp dword [eax], 0
je 0x100020c8
call fcn.1000d940
push dword [eax]
call fcn.10001e4c
pop ecx
jmp 0x100020cf
call fcn.1000d940
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x100020e8
cmp ebx, esi
jae 0x100020e8
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100020ea
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c6d4
leave
ret
Function at 0x1000c6d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027cb8]
jne 0x1000c6de
repz ret
jmp fcn.1000fca8

Function at 0x10011c19
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10027ed8]
je 0x10011c34
inc edi
cmp edi, 0x17
jb 0x10011c25
cmp edi, 0x17
jae 0x10011db4
push ebp
push 3
call fcn.1001797b
cmp eax, 1
pop ecx
je 0x10011d80
push 3
call fcn.1001797b
test eax, eax
pop ecx
jne 0x10011c68
cmp dword [0x1002aeac], 1
je 0x10011d80
cmp ebx, 0xfc
je 0x10011db3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002b4a8
push ebp
call fcn.10016b72
add esp, 0xc
test eax, eax
je 0x10011c9e
push esi
push esi
push esi
push esi
push esi
call fcn.10012cd5
add esp, 0x14
push 0x104
mov esi, 0x1002b4c1
push esi
push 0
mov byte [0x1002b5c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10011ce2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10016b72
add esp, 0xc
test eax, eax
je 0x10011ce2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10012cd5
add esp, 0x14
push esi
call fcn.10016be0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10011d27
push esi
call fcn.10016be0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002b7bc
push 0x100221dc
sub ecx, eax
push ecx
push eax
call fcn.100178c8
add esp, 0x14
test eax, eax
je 0x10011d27
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10012cd5
add esp, 0x14
jmp 0x10011d29
xor esi, esi
push 0x100221d8
push ebx
push ebp
call fcn.10017857
add esp, 0xc
test eax, eax
je 0x10011d49
push esi
push esi
push esi
push esi
push esi
call fcn.10012cd5
add esp, 0x14
push dword [edi*8 + 0x10027edc]
push ebx
push ebp
call fcn.10017857
add esp, 0xc
test eax, eax
je 0x10011d6b
push esi
push esi
push esi
push esi
push esi
call fcn.10012cd5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001769a
add esp, 0xc
jmp 0x10011db3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10011db3
cmp ebp, 0xffffffff
je 0x10011db3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10027edc]
push dword [esi]
call fcn.10016be0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001769a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000fe86
xor ebx, ebx
cmp dword [0x1002b92c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10017770
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10017850
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10017850
push eax
call fcn.1000fe18
mov dword [esp], 0x10022ad8
push edi
mov dword [0x1002b92c], eax
call esi
push eax
call fcn.1000fe18
mov dword [esp], 0x10022ac4
push edi
mov dword [0x1002b930], eax
call esi
push eax
call fcn.1000fe18
mov dword [0x1002b934], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000d213
test eax, eax
pop ecx
pop ecx
je 0x1001773e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012cd5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10017770
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000fe18
cmp eax, ebx
pop ecx
mov dword [0x1002b93c], eax
je 0x10017770
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000fe18
pop ecx
mov dword [0x1002b938], eax
mov eax, dword [0x1002b938]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100177f5
cmp dword [0x1002b93c], ecx
je 0x100177f5
push eax
call fcn.1000fe8f
push dword [0x1002b93c]
mov esi, eax
call fcn.1000fe8f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100177f5
cmp edi, ebx
je 0x100177f5
call esi
cmp eax, ebx
je 0x100177c2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100177c2
test byte [ebp - 0x18], 1
jne 0x100177f5
lea eax, [ebp - 0x10]
push eax
call fcn.1000d24a
test eax, eax
pop ecx
je 0x100177dd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012cd5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100177ec
or dword [ebp + 0x10], 0x200000
jmp 0x10017830
or dword [ebp + 0x10], 0x40000
jmp 0x10017830
mov eax, dword [0x1002b930]
cmp eax, dword [ebp - 8]
je 0x10017830
push eax
call fcn.1000fe8f
cmp eax, ebx
pop ecx
je 0x10017830
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10017830
mov eax, dword [0x1002b934]
cmp eax, dword [ebp - 8]
je 0x10017830
push eax
call fcn.1000fe8f
cmp eax, ebx
pop ecx
je 0x10017830
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002b92c]
call fcn.1000fe8f
cmp eax, ebx
pop ecx
je 0x10017850
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10017852
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100021d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp]
push eax
mov ecx, 0x1023e240
call fcn.10006110
test eax, eax
jne 0x100021e6
test edx, edx
je 0x100021f3
push edx
push eax
call fcn.1000e220
add esp, 8
ret 0x10
jmp fcn.1000aff0

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

Disassembly:
mov eax, dword [esp]
push esi
push edi
push eax
mov ecx, 0x1023e240
call fcn.10006110
mov esi, eax
mov edi, edx
test esi, esi
jne 0x1000231c
test edi, edi
je 0x1000235d
mov edx, dword [esp + 0x18]
test edx, edx
je 0x1000234e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1000234e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10002346
push edi
push esi
mov word [edx], ax
call fcn.1000e220
add esp, 8
pop edi
pop esi
ret 0x18
push eax
push ecx
push edx
call fcn.10002280
push edi
push esi
call fcn.1000e220
add esp, 8
pop edi
pop esi
ret 0x18
pop edi
pop esi
jmp fcn.1000abd0

Function at 0x10002370
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1023d1a4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x21c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov ebx, 1
mov word [esp + 0x18], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SHFolder.dll
push 0x104
lea eax, [esp + 0x14]
push eax
call fcn.100061c0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000240d
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002402
push edi
push 0
push 0
push 0x8023
push 0
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x10002460
push 1
push 0x208
push edi
push str.Common_AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call fcn.1000e5d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
call esi
test eax, eax
je 0x10002460
call esi
push eax
push 0x220f1007
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10010586
add esp, 0x20c
ret
cmp word [edi], 0
jne 0x1000248d
push 0xd
push 0x220f1007
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10010586
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.10010586
add esp, 0x20c
ret

Function at 0x10004140
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
shr eax, 2
sub eax, 1
js 0x1000415c
mov ecx, dword [esp + 4]
xor dword [ecx + eax*4], 0x19950315
sub eax, 1
jns 0x10004150
ret
Function at 0x10004300
Capabilities:
Create directory

Disassembly:
sub esp, 0x44
mov eax, dword [0x1023d1a4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
mov ebp, dword [esp + 0x4c]
push ebp
call fcn.10002370
add esp, 4
test eax, eax
jne 0x100044da
test edx, edx
jne 0x100044da
push ebx
push esi
push edi
push str.AhnLab
push 0x104
push ebp
call fcn.100061c0
mov esi, dword [esp + 0x68]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x10004365
push 0
push ebp
call edi
test eax, eax
jne 0x10004365
call ebx
cmp eax, 0xb7
jne 0x1000438b
push str.0D02314D_EC55_4d53_95FD_41183118B517
push 0x104
push ebp
call fcn.100061c0
test esi, esi
je 0x100043ae
push 0
push ebp
call edi
test eax, eax
jne 0x100043ae
call ebx
cmp eax, 0xb7
je 0x100043ae
call ebx
push eax
push 0x220f1008
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10010586
add esp, 0x44
ret
mov edx, dword [esp + 0x5c]
mov eax, 0x5c
mov word [esp + 0x10], ax
push edx
lea eax, [esp + 0x18]
mov ecx, 0x7b
push eax
mov word [esp + 0x1a], cx
call fcn.100040c0
mov eax, dword [esp + 0x68]
mov edx, 0xffff
add esp, 8
mov ecx, 0x2d
mov word [esp + 0x1c], cx
cmp dx, ax
jne 0x10004434
lea eax, [esp + 0x1e]
lea edx, [ecx - 0x28]
mov esi, 0x101c5654
mov ecx, eax
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffff9]
test ecx, ecx
je 0x10004426
movzx ecx, word [esi + eax]
test cx, cx
je 0x10004426
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10004400
sub eax, 2
mov word [eax], dx
jmp 0x10004442
test edx, edx
jne 0x1000442d
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x10004442
push eax
lea eax, [esp + 0x22]
push eax
call fcn.100040c0
add esp, 8
mov eax, dword [esp + 0x64]
mov edx, 0xffff
mov ecx, 0x2d
mov word [esp + 0x26], cx
cmp dx, ax
jne 0x100044a4
lea eax, [esp + 0x28]
lea edx, [ecx - 0x28]
mov esi, 0x101c5654
mov ecx, eax
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffff9]
test ecx, ecx
je 0x10004496
movzx ecx, word [esi + eax]
test cx, cx
je 0x10004496
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10004470
sub eax, 2
mov word [eax], dx
jmp 0x100044b2
test edx, edx
jne 0x1000449d
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x100044b2
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.100040c0
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0x104
mov ecx, 0x7d
xor edx, edx
push ebp
mov word [esp + 0x3c], cx
mov word [esp + 0x3e], dx
call fcn.100061c0
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x44]
pop ebp
xor ecx, esp
call fcn.10010586
add esp, 0x44
ret
Function at 0x10004870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
mov eax, dword [0x1023d1a4]
xor eax, esp
mov dword [esp + 0x4c], eax
mov ax, word [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov ecx, 0xffff
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x18], ebp
cmp cx, ax
je 0x10004911
movzx edx, word [esp + 0x68]
movzx eax, ax
shl edx, 0x10
or edx, eax
push edx
push str._08x
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.10002880
add esp, 0x10
push edi
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 3
je 0x100049b1
cmp eax, 2
je 0x100049b1
test eax, eax
je 0x100049fb
push eax
push 0x220f1200
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010586
add esp, 0x50
ret
movzx eax, word [esp + 0x68]
push eax
push str._04x
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.10002880
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0x10
push edi
xor esi, esi
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push esi
push ebx
mov dword [esp + 0x30], 0x10
call ebp
cmp eax, 0x103
je 0x100049b1
test eax, eax
jne 0x100049d6
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
push str.gue:rev:_s__s_
push 0xa
push 0x1023e498
call fcn.1000f2e0
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0x20
test eax, eax
je 0x100049f7
push edi
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
inc esi
push esi
push ebx
mov dword [esp + 0x30], 0x10
call ebp
cmp eax, 0x103
jne 0x10004954
push 0x103
push 0x220f1005
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010586
add esp, 0x50
ret
push eax
push 0x220f1203
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010586
add esp, 0x50
ret
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
test eax, eax
jne 0x10004a23
push 0xd
push 0x220f1003
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010586
add esp, 0x50
ret
lea esi, [ebp + 8]
push esi
push eax
call sym.AhnI2.dll_AhnInst2_SecMalloc
mov dword [ebp + 4], eax
test eax, eax
jne 0x10004a56
push 0xe
push 0x220f1e01
call fcn.1000e150
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10010586
add esp, 0x50
ret
mov edi, dword [edi]
cmp edi, dword [esi]
jne 0x10004a01
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100048f0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor edx, edx
call fcn.10010586
add esp, 0x50
ret
Function at 0x100066c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
mov eax, dword [0x1023d1a4]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
push 0xff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
push pe_nt_image_headers32
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push closesocket
call fcn.1000e5d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x24
mov edi, eax
call esi
test eax, eax
je 0x10006740
call esi
cmp eax, 3
je 0x10006740
call esi
cmp eax, 2
je 0x10006740
call esi
push eax
push 0x220f1200
call fcn.1000e150
add esp, 8
jmp 0x100067bd
mov cl, byte [esp + 0x110]
xor eax, eax
cmp byte [esp + 8], al
je 0x10006762
nop
cmp eax, edi
jae 0x10006762
cmp cl, byte [esp + eax + 8]
je 0x100067b9
inc eax
cmp byte [esp + eax + 8], 0
jne 0x10006750
cmp edi, 0xff
jbe 0x1000677e
push 0x10da
push 0x220f1100
call fcn.1000e150
add esp, 8
jmp 0x100067bd
mov edx, dword [str.UpdateProduct]
mov byte [esp + eax + 8], cl
push 2
inc eax
push eax
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push closesocket
call fcn.1000e660
add esp, 0x18
test eax, eax
je 0x100067b9
push eax
push 0x220f1201
call fcn.1000e150
add esp, 8
jmp 0x100067bd
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.10010586
add esp, 0x104
ret 4

Function at 0x100067e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
mov eax, dword [0x1023d1a4]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
push 0xff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
push pe_nt_image_headers32
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push closesocket
call fcn.1000e5d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x24
mov esi, eax
call edi
test eax, eax
je 0x10006866
call edi
cmp eax, 3
je 0x10006860
call edi
cmp eax, 2
je 0x10006860
call edi
push eax
push 0x220f1200
call fcn.1000e150
add esp, 8
jmp 0x1000688f
xor eax, eax
xor edx, edx
jmp 0x1000688f
push ebx
mov bl, byte [esp + 0x114]
mov edi, edi
xor eax, eax
cmp byte [esp + 0xc], al
je 0x1000688a
cmp eax, esi
jae 0x1000688a
cmp bl, byte [esp + eax + 0xc]
je 0x100068a8
inc eax
cmp byte [esp + eax + 0xc], 0
jne 0x10006878
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.10010586
add esp, 0x104
ret 4
cmp eax, 0xffffffff
je 0x1000688a
mov ecx, esi
sub ecx, eax
dec ecx
push ecx
lea edx, [esp + eax + 0x11]
push edx
lea eax, [esp + eax + 0x14]
push eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [str.UpdateProduct]
mov eax, dword [str.SoftwareAhnlabDynaUpdate]
push 2
dec esi
push esi
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push closesocket
call fcn.1000e660
add esp, 0x24
test eax, eax
je 0x10006870
push eax
push 0x220f1201
call fcn.1000e150
add esp, 8
jmp 0x1000688e
Function at 0x100072a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101c46c1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1023d1a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 1
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CAhnI2s_Profile2.0
call fcn.1000fe60
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], vtable.CAhnI2s_File.0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], vtable.CAhnI2s_MemBlock.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push 1
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 2
call fcn.1000fe60
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0xfde9
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x54], 0x70
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1000b690
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x1000b6a3
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x1000b6a8
xor eax, eax
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test esi, esi
jne 0x1000b6b9
mov esi, 0x101c734c
cmp dword [esp + 0x20], 0
je 0x1000b744
test eax, eax
je 0x1000b7bc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
lea edi, [eax + 0x1f]
lea ebx, [ebx]
mov ebx, edx
shr ebx, 5
mov ebp, edx
shl ebp, 4
xor ebx, ebp
add ebx, edx
mov ebp, eax
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebp, eax
xor ebx, ebp
add ecx, ebx
mov ebx, ecx
shr ebx, 5
mov ebp, ecx
shl ebp, 4
xor ebx, ebp
sub eax, 0x61c98647
mov ebp, eax
shr ebp, 0xd
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebx, ecx
add ebp, eax
xor ebx, ebp
add edx, ebx
sub edi, 1
jne 0x1000b6e0
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
sub dword [esp + 0x18], 8
mov dword [esp + 0x14], eax
jne 0x1000b6d0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
je 0x1000b7bc
mov eax, dword [esp + 0x14]
lea esp, [esp]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x2898bd67
mov edi, 0x1f
nop
mov ebx, edx
shr ebx, 5
mov ebp, edx
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xd
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebp, eax
add ebx, edx
xor ebx, ebp
sub ecx, ebx
mov ebx, ecx
shr ebx, 5
mov ebp, ecx
shl ebp, 4
xor ebx, ebp
add eax, 0x61c98647
mov ebp, eax
and ebp, 3
mov ebp, dword [esi + ebp*4]
add ebx, ecx
add ebp, eax
xor ebx, ebp
sub edx, ebx
sub edi, 1
jne 0x1000b760
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov dword [eax + 4], ecx
add eax, 8
sub dword [esp + 0x18], 8
mov dword [esp + 0x14], eax
jne 0x1000b750
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1000b7d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
xor ebp, ebp
push 1
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0x10
call esi
test eax, eax
jne 0x1000b858
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x80090016
je 0x1000b81a
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
jne 0x1000b858
call ebx
cmp eax, 0x8009000f
jne 0x1000b811
push 0x10
push 1
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call esi
push 8
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x1000b811
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000b8bc
mov esi, dword [esp + 0x1c]
push 0
push closesocket
push esi
call fcn.1000f430
add esp, 8
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000b8bc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000b8bc
mov ebp, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000b8cb
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000b8dc
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret